Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon

learn more… | top users | synonyms

1
vote
1answer
145 views

Rsync Backup from XFS to ZFS

I currently have a backup solution in place that uses rsync to backup all out Linux servers from remote sites, to an XFS drive in our HQ. I am now trying to rsync the folder from the XFS drive in our ...
1
vote
1answer
85 views

How do I run a shell script only any files are modified in a folder?

I need to replicate a folder over a very slow link to several destinations. Currently I create a text file with find. find "$sourcedir" -exec ls -la {} \; > "$statefile" I then compare it to a ...
0
votes
1answer
99 views

Space requirements when running rsync

I have two partitions, /disk1 and /disk2, each with 100GB of space, and both of them are 45% full now. I want to rsync /disk1 to /disk2/backup/, is it safe to use rsync for this purpose? rsync -avc ...
1
vote
1answer
539 views

automysqlbackup then rsync

I'm trying to configure an automatic MySQL backup solution under an Ubuntu server. I have chosen automysqlbackup and rsync for this purpose (does it seem to be a good choice ?) rsync will be used in ...
0
votes
2answers
83 views

About rsync server and client [closed]

after reading some documentation, I still don't get it (though it seems some just use it wrong): What's the purpose of rsync server and why not using the client only? Most seem to use rsync via ssh, ...
2
votes
1answer
289 views

Using rsync to copy from HFS+ to HFS+ on Linux

I have a small linux server. I have data on several HFS+ drives that I'd like to consolidate to another HFS+ drive. The drives will be connected to the server via a USB HDD dock. I'm running Ubuntu ...
2
votes
2answers
316 views

rsync not deleting folders

I have a problem rsyncing my folders. In my home there is folder named "workspace". Recently I changed its content a lot, creating new directories, deleting old ones. New folders were successfully ...
0
votes
2answers
137 views

xargs remove file name containing $

I am using xargs to remove files from remote server. xargs -a /var/log/del.log -i -exec ssh root@abc.com 'rm -rf "{}"' del.log contains path of the files which are deleted on local server and I ...
3
votes
1answer
184 views

How to prevent rsync (using ssh as remote shell) from facing a password prompt

I would like to run rsync without the need to enter a password. I understand I can do this using ssh keys and once the right key has been copied over to the remote server rsync logs in fine without ...
2
votes
1answer
84 views

RSYNC Slow / Copy only changed files?

I have a server that maintains thousands of log files that are nested in thousands of directories. At the moment, I am using RSYNC to copy those log files to a web server where I parse them and make ...
7
votes
5answers
10k views

Is there any other reason for “no space left on device”?

I am using Dirvish on a Ubuntu server system for backing up a hd to an external usb 3.0 drive. Until a few days ago, everything worked fine, but now every backup fails with "no space left on device ...
1
vote
1answer
57 views

RSYNC Filters Conflicting

I've had to break my rsync tasks down into smaller jobs given the size of my directories. Essentially, I'm doing it alphabetically (i.e., script that syncs folders starting with A-D, E-H, etc, etc). ...
1
vote
5answers
297 views

Using RAID1 to assist in offsite backups

I'm trying to set up an offsite, offline backup procedure for my company's critical information. We already have an in-office redundancy backup set up using RSYNC that backs everything up onto two ...
0
votes
1answer
441 views

Improve RSYNC scan speed / Alternate approach?

I'm using rsync to transfer application log files from one server to another. It works fine with the exception that scanning the directories takes forever. I have around 160,000 log files and a few ...
0
votes
1answer
81 views

RSYNC with different directory structures

I'm trying to accomplish the below with RSYNC but can't quite figure out the syntax. My source contains a folder for each user, then some subfolders under Logs. I need to capture everything under ...
-1
votes
2answers
101 views

Consecutive Remote Rsync Commands (Purpose Defeated by Multiple Password Prompts)

I have two huge folders that I want to rsync one after the other using one command. Command 1: rsync --compress /home/user/folder/ user@192.168.1.10:/home/user/a/folder Command 2: rsync ...
5
votes
4answers
835 views

rsync/ssh/rsnapshot backup — remote script execution

I have the following settings in my configuration file: (/etc/rsnapshot.conf) Script/Tool: http://www.rsnapshot.org/ backup_script ssh root@host.domain.com "sh /home/user/backup_mysql.sh" ...
0
votes
1answer
77 views

copying files using non-root rsync

I have a primary server and a secondary server and I wish to copy files over from the primary to the secondary using rsync. I have mounted the primary disk onto the secondary using NFS and am copying ...
0
votes
1answer
217 views

Unable to install rsync on mycloud.rackspace.com

I'd like to install rsync to do daily backups of my client's server account, which was recently migrated to mycloud.rackspace.com. Rackspace does have a tutorial implying it can be installed in the ...
0
votes
3answers
486 views

rsync over ssh server to server backup

I have a server that holds all my backups and I would like to back them up to another server. I was just wondering the best way to do this. do I setup rsync or use scp? I would also like to keep ...
1
vote
3answers
155 views

IPTables allow then block with active connection

I have a backup server and I was wondering if I set a cron job to allow connection from a server in IPTables then once it connects with rsync, can I use IPTables to then shut off the port to prevent ...
3
votes
2answers
2k views

Disable reverse lookup in rsync daemon

I'm having an issue with some rsync modules being served through rsync --daemon This lines are from my /var/log/rsyncd.log file : 2013/02/08 12:15:28 [13174] name lookup failed for XXX.XXX.XXX.XXX: ...
1
vote
1answer
123 views

How to I get rsync to exlcude a file pattern within an flock?

I have an rsync command that I run hourly via cron, and to prevent it from having multiple simultaneous rsyncs (should the previous hour's rsync still be running when the next hour comes around) I've ...
1
vote
1answer
1k views

Rsync Exit Code Checker - Bash

I have a simple script on my home server to sync data to my backup drive to be stored. Right now it runs multiple rsyncs one after another. Sometimes rsync fails on one or two of them. When this ...
0
votes
2answers
2k views

Host key verification failed [rsync: connection unexpectedly closed]

I have been stuck with a peculiar problem, where rsync command is not running when it is executed through crontab. Below is the code : #!/bin/sh -x ...
0
votes
2answers
186 views

Sync files between two computers connected to same network using rsync command [duplicate]

Possible Duplicate: Need help w/ rsync I have two computers connected to the same network, say Computer A and Computer B. Computer A has some backup files in a directory that needs to be ...
0
votes
1answer
54 views

rsync source code

I want to copy source code files from a remote file system to the local server. The source code file extensions are *.?pp, *.[CHh]. How can I run an rsync to copy the remote file system hierarchy and ...
1
vote
2answers
2k views

Rsync process is killed abruptly during backup over SSH

I have an rsync backup script to transfer data between two Ubuntu servers (located in different countries). The data being backed up is quite large in terms of number of files. It is about 17GB in ...
2
votes
0answers
96 views

rsync won't delete file that was deleted on source

I'm using rsnapshot to back up some servers of mine. It works fine, except it won't delete files that have been deleted on the source server. Here is where I give rsnapshot the options to pass along ...
2
votes
1answer
524 views

rsync --inplace not reading target file?

I'm trying to optimize the daily backup of a LVM snapshot of a large MySQL database. It works quite ok when I just cp the files (local RAID to other local RAID), with an average speed of ~100MB/s. But ...
0
votes
2answers
113 views

What directories absolutely need to be in a full system backup? [closed]

I'm currently configuring an Ubuntu Server system and would like to perform routine backups using rsync. The goal is to have the right files backed up so that I can use the backup to create an ...
0
votes
2answers
142 views

is running rsync after filesystem crash enough?

On my Debian Squeeze server, a filesystem crashed badly. I ran fsck.ext4 on it and it corrected many things. Now everything seems to be fine. Additionally, ran an rsync from a recent backup to the ...
0
votes
1answer
43 views

rsync synchronizing files only without creating folders on destination

Is it possible with rsync to not create directories on destination? MY SOURCE: a/ a/x.txt b/ b/y.txt b/c/g.txt MY WANTED DESTINATION: d/x.txt d/y.txt d/g.txt Is there any way to do this with ...
1
vote
1answer
473 views

How to make sshfs + VPN + git a tolerable working environment?

Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote git repository cannot be made public. My current setup is: ...
1
vote
1answer
176 views

rsync from linux host to fat32

i like to backup my linux based NAS (small files like picutres) to an attached USB Disk with FAT32. For this i like to use rsync. I know, that this will not work correct per default. rsync will sync ...
2
votes
3answers
1k views

How can I allow the user “postgres” on one server to rsync to another?

I'm trying to get this command to work as the user postgres (so I can ship wal files): rsync -a /tmp/test postgres@server2:/tmp/test But I get the error: Permission denied (publickey). I've run ...
0
votes
1answer
243 views

Using NFS mount script with grandfather father-son script but only getting 6 daily backups. I should also have 4 weekly and 2 monthly backups

I'm using rsync to clone changes from a remote server(MT DV4.0) to a local one(ubuntu 11.10). I'm then using the following copy/paste script to compress then archive the files. #!/bin/bash ...
2
votes
1answer
4k views

Force rsync to copy symlink, even if referent does not exist

I am getting this message with rsync: symlink has no referent: "/a/path" Well, rsync is right: in the source filesystem, the (symbolic) link is pointing to a non-existent location. That is ...
1
vote
1answer
343 views

Rsync to windows FTP over curlftpfs fails to set permissions

I'm transferring some large files (1.5Gb) to a windows FTP server in a cronjob. It's going over a 2Mbit ADSL line, with 512Kbit upstream. So it takes forever, and can be prone to dropping to line. I ...
4
votes
3answers
174 views

Backup Permissions for Entire File System

Here's the skinny: I have a Linode VPS that I want to backup to my local laptop via rsync. I have just generated ssh keys for the communication and left a blank passphrase for the private key so I can ...
0
votes
1answer
129 views

How can I refer to my machine (client) when remoted in to a server via ssh?

This comes up with surprising frequency: I am on a server or other machine via ssh. I want to scp or rsync some files back to my client machine. The problem is that I am behind a firewall and I don't ...
0
votes
0answers
46 views

Backup laptops mac address in local network

I am looking for a good method to automatically clone directories from laptops that is currently connected to the local network to a server on the same local network at a regular interval in a small ...
10
votes
2answers
311 views

Server migration: most efficient way

I have been tasked with migrating one of our sites between servers (two different hosts). Both environments are linux. The site streams video, so the server is currently filled with media files ...
4
votes
1answer
515 views

rsync copies unmodified files between different file systems

I try to synchronize files between two machines using rsync, but it seems to copy all the files regardless file modification time. Two consecutive call of the command produces the same results, so it ...
1
vote
1answer
504 views

How to modify ssh_args in rsnapshot config?

I have a global rsnapshot config file for all machines that we backup. The global file has ssh_args -p 123 The machine specific files include the global config file and tries to override the port: ...
1
vote
1answer
31 views

rsync from machine a to machine c

I have gentoo Linux. I want to RSync to a remote machine that I need to SSH twice to get into. how can I do that in one command ? I used to do that with one command but I forgot how! I used to do ...
2
votes
1answer
157 views

Is there a global config file for Unison synchronization tool?

I'd like all my unison profiles to have merge = Name * -> meld CURRENT1 CURRENT2 diff = /usr/bin/meld CURRENT1 CURRENT2 confirmmerge = true as options. I know I can add these options to each ...
0
votes
2answers
827 views

limit the speed of writing files to NFS

CentOS 5.6 NFS is mounted on the server for backup disk space. When the backup job started, it could reach 80MB/s and we really do not expect it took so much bandwidth. So i need to find a way to ...
2
votes
2answers
182 views

Copy entire filesystem in a folder where a raid-1 array is mounted

I am trying to migrate from a single disk drive system to a double disk drive software raid-1 system that already has a running system on it. Meaning that formatting and having a new installation of ...
7
votes
8answers
2k views

make a cronjob wait for previous rsync job to finish

I'm using rsync to backup some data from one server to another. All works fine, but it might take longer to finish depending on how much data there is to transfer. Is there any gauranteed way to ...