Questions tagged [rsync]

a utility used to synchronise files between locations (possibly over a network)

rsync is a commandline tool for efficiently copying and backing up data from one location (the source) to another (the destination). It can be used for local backup of files, a backup over a network, synchronising a remote website and many other uses.

While rsync can be used directly from the commandline or from within a script there is also a gui for rsync called grsync for Ubuntu users who are not willing to use the commandline.

References:

See also:

775 questions
102
votes
7 answers

How can I view a progress bar when running rsync?

I am using Ubuntu 12.04 as a repo and would like to view a progress bar when using rsync from the command line. I tried the option suggested in this article (-P), but I prefer to see a progress bar and not use Grsync. I am using rsync -P source…
Joseph Smith
  • 1,143
66
votes
2 answers

How to exclude a folder from rsync

I am trying to backup my home folder on my NAS drive. I am giving this: rsync -Paz --exclude-from 'rsync-exclude.txt' /home/chris/ admin@192.168.1.65:LinuxHome where rsync-exclude.txt has this…
xpanta
  • 1,491
46
votes
2 answers

Preserve directory tree while copying with rsync

When I do something like: rsync Videos/YouTube/LetsPlays foo@bar:/home/foo/ The resulting directory structure looks like: /home/foo/LetsPlays I've read the man pages but couldn't an option to maintain the directory structure, aiming for…
Markus
  • 1,585
35
votes
4 answers

Increase verbosity of running rsync process?

I'm running 'rsync -a -i /foo /bar'. Every now and then I would like to know what exactly rsync is doing at the moment without having the -v output all the time. Is it possible to increase the verbosity of running processes e.g. by sending a kill…
Germar
  • 6,377
  • 2
  • 26
  • 39
29
votes
6 answers

Monitor/Watch running rsync process

I have an rsync job that has been added to a crontab and when it's running, I can only check that there's a rsync PID and confirm with htop that it's eating up n amount of CPU and RAM. What I'd like to do is to monitor what files are actually being…
vanz
  • 767
22
votes
3 answers

How exactly does rsync decide what to sync?

I'm finding multiple answers to the question, so wanted to ask people that actually use it, rather than just want to make the biggest blog by filling out with random semi useless information. Scenario: I rsync -av --progress /dir/a /dir/b and it…
22
votes
3 answers

rsync between two computers on LAN

I want to rsync between two computers on my LAN with IP-adresses 192.168.20.9 and 192.168.20.10 both running Ubuntu 10.10. I want to try rsync and ssh service between the two computers.
joe1983
  • 545
21
votes
4 answers

How can I exclude all subdirectories but include files of a directory in rsync?

I want to backup my Ubuntu system and I have two partitions to care: One is /, another is /home. I'll likely want to backup /. This is not even that big so I can carry it on my SD card, while being responsive enough for making me want to have a…
Dinir
  • 335
12
votes
1 answer

rsync not actually copying files

I'm trying to synchronize a large directory of files from my server to a local box. (Both are running Ubuntu.) I have a command that looks like it works, but certain files are not copied: phrogz@planar:~$ cat ./sync-phrogz-public rsync -rztpl…
Phrogz
  • 1,646
11
votes
4 answers

Can someone explain this rsync command for me?

Can anybody tell me what this does? rsync -uva --delete /srv/bkp01 /srv/offbk2/ > ~/offbkp01.log Does it delete bkp01 and offbk2 and sends a log to offbkp01.log?
9
votes
2 answers

Rsync, how much risky to use it live?

I rsync my disk live, I mean I'm making a rsync backup of the machine I'm using. Is it ok, safe, wise ? or very not ? Is it risky, if I want to use this backup for restoring or cloning then ?
3pic
  • 467
  • 1
  • 8
  • 20
7
votes
3 answers

Incremental backup script

I am using rsync command for incremental backup my requirement is incremental backup of modified files in different directory in same location name with current date but when i use rsync it store the incremental backup in full backup not in name…
7
votes
0 answers

rsync: link_stat failed: No such file or directory (2)

working with RSYNC on a command line project to sync my phone with my music folder based on a number of... options. Not sure why it's failing, but here goes: The command: sudo rsync -arvRn --progress --temp-dir=/home/test/…
chow
  • 225
  • 2
  • 8
6
votes
4 answers

Rsync issue: some files/attrs were not transferred

(I turn the whole internet upside down for the past 20 hours, none of the similar threads helped) This is between two debian(from) and purchase iptv ubuntu(to) servers moving files from one machine to a remote machine. Yesterday I tried to move over…
ALi gg
  • 61
5
votes
1 answer

rsync --exclude option for copying folders from server

I am trying to backup files from cluster to my local computer. On the process, I am trying to avoid some unnecessary sub-directories from cluster being copied. So I use rsync -av user@cluster.com:/home/dir . --exclude…
SKPS
  • 183
  • 2
  • 15
1
2 3 4 5 6