Rsync is an open source command line tool for Unix and Windows systems that provides fast incremental file transfer to copy files and synchronize directories locally or between remote hosts. It is widely used for mirroring and backup.

learn more… | top users | synonyms

1
vote
0answers
34 views

rsync ssh to ssh to local

Is it possible to perform a rsync to backup files from a server passing by an another server by ssh. And I have to use port 23 from local to server1. So : ssh ssh -p 23 server2 ...
0
votes
1answer
78 views

Ununtu 12.0.4 LTS Boots to some unknown mount point

I installed Ubuntu 12.0.4 LTS to a 2TB Sata with a swap partition and a data partition. I installed mdadm and setup an incomplete raid. I later unmounted that raid (to which it erred as non-existent) ...
2
votes
1answer
1k views

Rsync very slow

I have just setup a Debian server for backup of Windows PCs. I am currently testing various methods including: rsync (using Deltacopy on Windows), SMB via Samba and scp. Currently rsync (without SSH ...
2
votes
2answers
1k views

Is there really no way in Linux to get creation time for files on cifs/smb share?

I am embarrassingly far along in a bash backup script and have missed something major. I know that ext3 filesystems don't track creation date, but copying files within ext3 updates the changed time as ...
0
votes
0answers
40 views

Rsync Being Naughty

Rsync as you know is known for its ability to sync files incrementally - backing up only the changes. However, this is not the behavior I have noticed while testing my Rsync setup. It appears that ...
0
votes
2answers
95 views

rsync: gzip on source tolerant

I need to transfer a couple of log-files each hour to a logstorage which all users can reach, and I use rsync for do that, but the problem comes when the log-file is rotated and automatically zipped, ...
0
votes
1answer
442 views

How to rollback a single file backed up with rsync?

I just set up a linux NAS as an rsync server to backup our file server. I'm saving several versions of each file and know how to restore a snapshot of our server, but what we really need is to ...
1
vote
1answer
184 views

Automatically purge rotated backup without breaking rsync

How do I make sure locally deleted files have been rotated before deleting them on the server, whithout breaking incremental rsyncing? I usually rsync my files into /backup/active/ on my server, ...
1
vote
1answer
47 views

Automatic Media Server Mirror

I have a large (400GB) photo library and I've just built a media server (Win 2012) that I use for local redundant storage and to backup to a cloud (CrashPlan). Since work is primarily done on a PC ...
2
votes
1answer
104 views

Rsync won't save some files

I have a strange issue with rsync: some files are not saved on the remote host. On my Windows 2012 server i'm using: rsync --progress --no-compress --partial -avshW "/cygdrive/d/foto" ...
1
vote
0answers
146 views

Rsync do not do anything if files not changed

#!/bin/sh date=`date "+%Y-%m-%dT%H:%M:%S"` rsync -aP --link-dest=/target/current '/source/folder' /target/back-$date rm -f /target/Backups/current ln -s back-$date /target/current This is a little ...
0
votes
0answers
132 views

Rsync between two VM stalls after few files

I have two VM (let's say VM A and B) on the same host. I try to rsync between those VM, from VM B (with a rsync daemon running on A): B$ rsync -rvut user@A::src dest/ It works well during few ...
0
votes
1answer
185 views

File sync solution with pattern matching

I have a directory I want to sync over the cloud using a service like Dropbox. But, within that folder, I only want to sync directories that match a particular pattern. For instance, sync all folders ...
3
votes
2answers
156 views

Differential copy from Windows to Linux

Is there any way to do differential copies of a directory from Windows to Linux over ssh, sftp, scp, or similar? Preferably not rsync since they are all cygwin based and force you to use the ...
0
votes
1answer
38 views

rsync not skipping untouched files

I transferred about 300GB of files with scp from one server to another. Sadly I forgot the -r option, so part of the files that were in subdirectories were not copied. I verified that the files that ...
0
votes
1answer
36 views

Rsync only files from specific user

Is there a way to rsync only files from a certain user? I have a folder which contains files from multiple users but would only like to backup files from a particular user. I've looked at the man ...
1
vote
1answer
69 views

rsync expanding remote directory with local username?

I am new to rsync but attempting to setup a backup server. User names follow this basic idea: remote user: computer local user: computer-bkup. When I run $ rsync -avz -e ssh ...
0
votes
0answers
54 views

Rsync delete issue

I implemented rsync to backup the data from the server to my local machine,and done it regularly by cron. It works fine but yesterday it deletes the files from the folders on my local machine but on ...
1
vote
1answer
111 views

My Backups are all flocked up

I have cron job that runs an rsync command that does a remote backup every two hours. In the event that the previous remote backup is still running, I've encapsulated this rysnc command inside of a ...
0
votes
1answer
201 views

Using excludes with rsync

I am trying to use rsync to automatically backup my personal files in /home/usr to an external drive. Of course, my /home/usr directory contains a number of hidden files (for config, etc.), such as ...
4
votes
1answer
2k views

Unicode Characters in Ubuntu Server

I recently migrated from Ubuntu Desktop 13.04 to Ubuntu Server 13.10 and now my filesystem doesn't seem to support unicode characters. I use rsync to backup/sync files and it shows the proper ...
0
votes
2answers
96 views

Rsync fails to sync flags

I am trying to sync two folders along their extended attributes, however some files are always synced every single time without any apparent reason. Debugging rsync I found out that the remote file ...
1
vote
1answer
466 views

Multiple rsync versions conflict

RSYNC only fails when I try to sync extended attributes (Mac OS X) with the following error. rsync error: protocol incompatibility (code 2) at io.c(599) [sender=3.1.0] rsync: [receiver] write error: ...
0
votes
1answer
61 views

Linux shell command to compare two directories and remove dupes

As a part of an app I'm developing, I need to remove any files in directory A that are already into directory B. I thought of rsync but I can't stop it from copying the files missing from source to ...
0
votes
1answer
1k views

Specifying an alternate shell with rsync

I'm using rsync to sync up files between two computers. On one machine, my default shell is set to fish, which breaks rsync ("protocol version mismatch -- is your shell clean?"). Is there a way to ...
1
vote
2answers
1k views

Linux: What is the best way to copy from a damaged HD, only the files that can be completely read?

I am copying from a damaged HDD (not SDD) where about 15% files would cause I/O error. I only want the rest of the 85% complete files, and get a list of damanged files. How to do that? cp stops on ...
6
votes
3answers
5k views

RSYNC Does Not Delete Source Directories

I'm using rsync to essential fetch files off a server, then delete the files from the server once I have them locally. The full command I'm running is below. This does successfully delete the files ...
2
votes
1answer
12k views

How to interpret and fix a Input/output error in Linux?

I am running a daily backup with rsync. Starting some days ago, one of the files has been throwing this error during the backup: rsync: read errors mapping "/home/folder/file.ext": Input/output error ...
4
votes
4answers
4k views

How to arbitrarily map user/group ownerships in rsync

I need to rsync a directory to a remote server so that all files belonging to user X and group Y on the source (local) machine are mapped to user W and group Z on the destination (remote) machine. If ...
0
votes
1answer
273 views

Error while executing bash command stored in string

Wrote a bash shell script that uses rsync to deploy files to live web server. Right before executing, the script outputs the full command that the my shell script generates: rsync --chmod="ug=rwx" ...
0
votes
1answer
320 views

Scripting with rsync, pulling more than the return status

I have a script to backup my images and alert me to the status of the script which gets run every 5 minutes. However, I want to figure out how to identify when rsync was successful, but didn't do ...
3
votes
1answer
94 views

How can I rename files and subdirectories in a copied directory based on changes in the original?

I have a directory structure with many hundreds of files and folders underneath it for organising files (in this case photos). I create backups of that directory structure by rsyncing it to identical ...
3
votes
0answers
534 views

Rsync fails for files that start with underscore when destination is zfs

I'm using rsync3.1.0pre1 on Mac OS X 10.8.5, and am trying to rsync one folder to another. The destination is a ZFS volume mounted via SMB. The problem I'm having is that files that start with ...
0
votes
1answer
399 views

rsync filter: not finding the filter file

Wrote a shell script to aid me in deployment of website. Everything finally comes together as supposed, but the rsync command refuses to work. rsync --chmod="ug+rwx" -e="ssh" --filter="merge ...
0
votes
1answer
123 views

Rsync --backup-dir seems to be ignored

I want to use rsync to backup a directory from a local location to a remote location, and store changed files in another remote location. I did use: rsync -rcvhL --progress --backup ...
2
votes
1answer
806 views

How can I direct rsync output / log to the remote server?

I am able to output rsync logs on the client machine using --log-file=FILE but I want the output to be sent to the server instead. The client is a W7 machine (cygwin) and the server a Linux NAS. This ...
2
votes
0answers
196 views

External drive has strange files “_*” appearing - culprit is maybe rsync or SMB access?

I'm using rsync to back up folders from my iMac to a WD MyBook and the process seems to leave files such as these: _0O1MN~H.MP4 _2C0X2~3.AVI _ALLYW~B.SRT _VUC69~7 The last one is the most ...
1
vote
2answers
5k views

Permission problems with rsync

I wanna do daily ssh synchronization of some of my local machines files with my server. I want to do this via rsync, since it sounds the most promising tool for this task to me. Sadly I get the ...
0
votes
1answer
208 views

Rsync from godaddy to OS X

I would like to use rsync to backup my website to my local computer (OS X). I started of with this guide and got pretty far. I use the following rsync-line: rsync -PzrlptgD --del --delete-excluded ...
3
votes
1answer
497 views

Fastest way to delete a non empty directory in Linux

I use the command rm -rf directory but i came across the following article : Article That suggests that rsynch to an empty folder is the fastest way? rsync -a –delete empty/ a Why is this the case ? ...
1
vote
3answers
2k views

Are periodic full backups really necessary on an incremental backup setup?

I intend to use an old computer I have as a remote backup server for myself and a few other people. We are all geographically separated, and the plan is to do incremental daily backups using rsync and ...
1
vote
1answer
541 views

rsync include all directories and certain subdirectories and *.java of the last sub

I am trying to rsync include all directories but only one of each of those subdirectories which contain certain files. For example, rsync -auvz --include '*' --include '*/certain_sub/' --include ...
1
vote
2answers
299 views

Why does my rsync server on windows always set the read-only flag when I write to it?

I'm using cwrsync on windows. This is my daemon config file use chroot = false strict modes = false hosts allow = * log file = rsyncd.log pid file = rsyncd.pid port = 11011 # Module definitions # ...
1
vote
1answer
256 views

Backup files from Linux client to Windows Server

I'm trying to backup my files from my Linux box to my Windows Server 2008 as a push, and when I delete them from my Linux box, they remain on my Windows Server. I've found lots of sources that are ...
0
votes
2answers
72 views

Sycronizing/deploying scripts across several systems

I have a few time consuming tasks that I like to spread across several computers. These tasks require running an identical ruby or python script (or series of scripts that call each other) on each ...
0
votes
1answer
68 views

two-way sync between mac and unix

I would like to work on a directory on two different macs and have access to a unix server that I ssh into. I would like to just start a script at the end of the day that let's me upload all my ...
1
vote
1answer
247 views

rsync backup messes up permissions on files

I use rsync backup on my Android device to backup some files from my device to my *nix server. It sort of works, except the target directory and all files under it have their file mode flags set to ...
0
votes
1answer
217 views

Can't get rsync to sync two external harddrives

I'm trying to use rsync to copy files from one external HDD to another external HDD. I use the following commands rsync -rv --exclude=.DS_Store ~/Volumes/Backed /Volumes/Hero where Backed is the ...
1
vote
2answers
255 views

Is there an rsync equivlent of .gitignore?

I have a file that should never be synced in a directory that will be rsynced often. Rather than relying on --exclude (and my ability to remember to use it), can I tell rsync to ignore the file in a ...
0
votes
1answer
66 views

Does a successful exit of rsync -acvvv s d guarantee identical directory trees?

I have two volumes, one xfs, and another ntfs - ntfs was empty, and xfs had 10 subitems. I needed to sync them. I initially copied a few of the subitems by dragging them over in a gui fm. Several of ...