5
votes
2answers
157 views

Copy directory tree without empty directories?

I have the following tree # upper letters = directory # lower letters = files A |-- B |-- C |-- D |-- e <= file |-- F |-- G I need to copy this tree to another destination, ...
0
votes
1answer
440 views

Count how many rsync process are running on unix machine

I am using Unix machine $ uname -a SunOS machine-name 5.10 Generic_127112-11 i86pc i386 i86pc How would I get the number of rsync process running on my unix box. I tried $ ps -ef | grep rsync ...
0
votes
2answers
207 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 ...
2
votes
2answers
1k views

rsync protocol incompatibility

When doing an rsync pull from a remote server using the following command: /usr/bin/rsync -av -e ssh --delete --chmod=a+rwx,g+rwx,o-wx --dry-run username@server:/remote/path/ /home/dir/local/path I ...
3
votes
3answers
358 views

rsync --link-dest behaviour when run as sudo

In order to create regular backups, I'm using rsync together with --link-dest so as to create hard-links for unchanged files. For example: rsync -ax \ --partial --delete --delete-excluded ...
1
vote
1answer
1k views

how i can disable delete file option in unison sync tool?

i want to disable delete option of unison in other word i want unison tool always copy file [don't delete anything]. I read manual but i can not find what i need . for example we have two folder ...
2
votes
3answers
4k views

How to install rsync on AIX machine

I have a machine running AIX. I'm looking to install rsync on it. Does rsync support AIX? If so, where might I download it? In case it matters: I will be using rsync to copy a filesystem from my ...
0
votes
1answer
346 views

Cygwin Scp or Rsync permissions

Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy ...
4
votes
1answer
2k views

Using a shell script to check if rsync made any changes

I've got a bash script that rsync's two directories. Sometimes there's a change, odds are there's nothing. I want to run a command only if rsync actually made a change (add/update a file). ...
1
vote
1answer
303 views

Rsync and Lazy mode?

Since transferring or copying a file that is being used sometimes causes corruption of the transferred file, can we define a time interval in which Rsync checks each file in a given directory to see ...
14
votes
3answers
18k views

Getting rsync to move file from source to destination?

Is rsync is a good choice for my project ? I have to : - copy files from source to destination folder via SSH, - be sure all files are copied, - delete source files after copy. - if I have conflict ...
13
votes
1answer
8k views

rsync - Exclude files that are over a certain size?

I am doing a backup of my desktop to a remote machine. I'm basically doing rsync -a ~ example.com:backup/ However there are loads of large files, e.g. wikipedia dumps etc. Most of the files I care a ...
1
vote
2answers
782 views

Sync a folder on a remote UNIX server from Windows with rsync

I am trying to sync the contents of a directory on my Windos machine with a UNIX server. I have spent a long while reading the rsync documentation and have come up with the following command: rsync ...
41
votes
15answers
9k views

Favorite rsync tips and tricks

The more I use rsync the more I realise that it's a swiss army knife of file transfer. There are so many options. I recently found out that you can go --remove-source-files and it'll delete a file ...
9
votes
1answer
3k views

Getting rsync to delete files from the *sender* after transfer

I'm using rsync to move one directory to another. Is there some way to get rsync to incrementally delete a file from the sender after it has copied it to the reciever?
78
votes
15answers
81k views

Copying a large directory tree locally? cp or rsync?

I have to copy a large directory tree, about 1.8 TB. It's all local. Out of habit I'd use rsync, however I wonder if there's much point, and if I should rather use cp. I'm worried about permissions ...
7
votes
6answers
6k views

improving rsync backup performance

What are the best techniques to improve rsync over ssh mirroring between unix boxes, assuming that one system will always have the master copy and the other system will always have a recent copy (less ...