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
2answers
166 views

How can rsync fail due to missing permissions if remote login occurs with root?

I can't think of any reason why the transfer of a simple file with rsync -e 'ssh -p 19' -vvv /path/to/file root@192.168.179.3: fails with opening connection using: ssh -p 19 -l root 192.168.179.3 ...
0
votes
1answer
38 views

Rsync between KVM VPS and VirtualBox

I need advice how to rsync via ssh (and what directories need to be synced) between a KVM VPS (Debian Jessie) and VirtualBox to effectively make the VirtualBox a clone of the VPS. I use the term ...
0
votes
0answers
41 views

rsync “file has vanished” for broken symlinks when --del is used

I'm using rsync on a Synology NAS to make daily hardlink-snapshots from all shares. To have a off-site backup, I'm copying the local backup away. Due to performance, only the newest backup is copied ...
0
votes
1answer
21 views

network old mac to use as rsync backup

The goal: Be able to run my rsync backup on my local machine "X" (Ubuntu 13.1) to a remote machine, a currently un-networked mac "Y" (OSX 10.2.8). What I've done so far: Flew to the old mac ...
0
votes
0answers
19 views

How to Synchronize Full Content of Mail Account and Local Directory via IMAP?

Is there tool which facilitates one-way synchronization of a mail account's content (accessible via IMAP) and a local directory? For example: An email with attachment is received - then that email is ...
4
votes
1answer
4k views

How to keep rsync over SSH conenction permanent - no broken pipe

I try to run a rsync on a shared server that I have no control over the ssh-config file to prevent the broken pipe error because the connection drop. Here's a snippet of the code I use to backup ...
0
votes
1answer
30 views

Best method to copy big partition contents with many hard links

We had a LVM of almost 16TB with ReiserFS. We now want to add more disks, but we cannot continue using ReiserFS, as it has a maximum capacity of 16TB. This volume is being used to make incremental ...
0
votes
1answer
44 views

User can't delete file owned by user with w permission

I've a backup system based on rsync. Get a problem when try delete one file srv106@storage10:~$ rm -vf /srv/storage/homes/srv106/daily/files/daily.32/root/.my.cnf rm: cannot remove ...
4
votes
5answers
3k views

rsync synchronizing files only without creating folders on destination

Is it possible with rsync to not create directories on destination? Imagine I have that source : a/ a/x.txt b/ b/y.txt And that I have this destination : a/ a/z.txt The wanted result of rsync ...
0
votes
1answer
393 views

Backup of a Linux desktop on a Synology NAS (DS 5.2) using backintime

I am trying to setup a backup of my Linux desktop machine on a Synology NAS with backintime. However, I am stuck with the following error message: Entfernter Rechner <nas.ip.address> ...
0
votes
0answers
6 views

rsync does not ignore open tmp files

file~ // <--- example of file I do not want to copy And the command: rsync -r --exclude '*~' /from/my/dir/ root@server.com:/to/my/dir/ I am trying to exclude tmp files that I am currently ...
1
vote
2answers
43 views

List of linux paths which are 'virtual' files

I don't know the correct terminology, and that's probably the reason I can't find a related question here on Superuser. I have a backup script that syncs my linux server to a remote location. My ...
0
votes
0answers
14 views

What happens when you try to rsync a mounted file system that has gone stale/online

I am using rsync to make sure a primary and secondary mounted file system stay in sync. The live in separate data-centers and am using the --delete option so that the sync doesn't at some point fill ...
1
vote
2answers
108 views

Linux command line to create a log file for rsync

I am trying to create a log text file after doing an rsync. I've tried using a command line: rsync -av /source/ /dest/ > log.txt The text file that was created only shows the file names that are ...
14
votes
2answers
12k views

rsync files newer than 1 week

I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B. Thanks for you help.
0
votes
2answers
91 views

what is the default speed in rsync to send from local to remote machine?

I want to know the default speed of rsync command to send data from local machine to remote machine. Is that depend on network or rsync has default speed is set for rsync command.
3
votes
3answers
5k views

rsync copying directory contents non-recursively

I'm trying to copy the contents of a series of directories non-recursively to another remote system. /dirA/dir1/file /dirA/dir2/file /dirA/dir3/file dir1, dir2, and dir3 contain many directories ...
10
votes
3answers
1k views

How to make a redundant desktop system with daily snapshots? (Is btrfs ready for use?)

I want to configure a desktop system in which the home filesystem would be redundant (e.g. RAID-1), and would have weekly snapshots taken. I've already done this with ZFS, the snapshot system is ...
0
votes
1answer
76 views

AUTO SYNC with rsync

Hi guys that's my first post here so be cool, so I have a Mac with Rsync, and I have a VPS with Debian 8 on it, I want to do something but I don't know how. So I want to create a folder name SHARE on ...
2
votes
1answer
476 views

Possible to rsync to Amazon Glacier?

I have an Ubuntu 14.04 server that I need to incrementally backup nightly, preferably with rsync. Amazon's Glacier looks like a good option but none of the online tutorials I'm finding do incremental ...
0
votes
0answers
27 views

running rsnapshot with hardlinks only?

We are running rsnapshot as a backup mechansim for long time but we manage also very huge systems which already take enough care about hardware failiure but don't have a convenient snapshot mechanism. ...
2
votes
2answers
3k views

rsync fails after server restart

Usually I use the command rsync -av --delete someroot/somedir user@remote_server_ip:/someroot/. on my development server to synchronize somedir to a remote server. It worked fine. But after the ...
0
votes
0answers
62 views

rsync --append-verify with a very unstable source

I'm trying to salvage files from a hard disk that is about to die (or it's the USB-SATA dock that's about to die, I can't be sure). The disk is GPT partitioned and has one HFS+ volume. I'm pretty much ...
8
votes
2answers
14k views

Use rsync to copy all files except for certain filenames with a certain extension

I have two same-size flash cards, and I want to copy contents of one to the other based on the following rules: I want all directories and subdirectories in place I want to exclude files of type ...
5
votes
2answers
3k views

Behavior of rsync with file that's still being written?

If Apache is in the middle of writing a large file and an rsync cron job runs on that file, does rsync attempt to copy the file? Example Apache-1: Has file large being written to /var/www. ...
0
votes
1answer
29 views

Why do I sometimes have to double escape spaces in rsync paths?

When referring to paths with spaces, e.g. Steve Jobs, I can either backslash escape, or surround with quotes, when the path is the local directory: rsync Steve\ Jobs user@remote:/ or rsync "Steve ...
0
votes
2answers
127 views

Rsync with SSH prompting for remote password

I have followed the following guide to setup Rsync with SSH between my local machine and a remote server: I performed the below as root: rsync -avz -e ssh /home/user/dir ...
1
vote
0answers
26 views

Make rsync honor directory setuid

I have a destination dir with id bit set, i.e. -rwxrws--- If I mkdir within this dir, it creates new dirs with the dir bit set. But when I rsync into it, rsync creates new dirs without the dir bit ...
0
votes
0answers
25 views

Restrict rsync operations to a subset of files

I have 2 directories that timestamped files are written to. At the end of the day, I would like to synchronize the directories so that they look exactly the same. I have something like this: dir1/ ...
0
votes
0answers
104 views

How to capture packets of rysnc using tcpdump

I am trying to do rysnc a 4G file to another directory and want to capture rsync packets using tcpdump. I tried listning to port 873 which is used for rsync but did not find anything captured. I ...
0
votes
0answers
39 views

Syncronizing with some variables

We have three product image folders on our server and their locations on server are also different. For making it clear i'll call them A,B,C here. The "A" folder have sub folders of different ...
0
votes
2answers
66 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 ...
0
votes
2answers
66 views

Using multiple rsync processes with --remove-source-files

Let’s say that I have data on the order of terabytes, in files on the order of megabytes, to move away from a server that’s over 500 ms away. Due to the nature of TCP, the command below works but ...
0
votes
1answer
57 views

Why is Rsync is only sending an incremental file list via SSH?

I’m trying to copy clean Arch Linux installation and send it to other VPS trought SSH. It doesn’t do anything else than send out an incremental file list. rsync -axH --delete -e ssh --stats -P build/ ...
10
votes
4answers
10k views

Rsync print only files that would have been changed

Is there a way to get rsync to print the full filepaths to all files that are different without actually transferring any files? Alternatively, I need a way to diff the files across two trees (over ...
0
votes
0answers
18 views

How to copy/sync pictures with certain xmp tags only

I want to copy jpg pictures to a matching folder structure (one way syncing) only when they include a certain XMP tag. For example: I have ALL my pictures in a folder structure on drive A. Within the ...
0
votes
1answer
35 views

How to tell if Rsync transfer has finished from the remote computer?

If I am transferring a file or a directory form Computer A to Computer B, is there a way for me to tell (when SSH'd in to computer B) that the transfer is A. Complete or B. Finished with an error ...
0
votes
1answer
41 views

Linux script to move files from muilple directories

I am trying to create a script to move files once they are placed in a directory into sub directory Example Files placed in /home/userA/directory1 get moved into /home/userA/directory1/directory2 I ...
74
votes
16answers
91k views

How to synchronize the home folder between multiple computers?

I have three computers at home, and would like to have the /home/ folder tree synchronized between the three. Any files/folders (except those hidden) that are modified/added/removed in one of the ...
4
votes
4answers
9k 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 ...
2
votes
1answer
68 views

Set up MySQL slave to slave replication

I have two machines with MySQL servers instances A and B. I want to add another MySQL server C which should replicate from B rather than from A. I may stop B but not A. These are the steps I tried: ...
0
votes
3answers
95 views

Syncing Large, Rarely Changing Files

I have a home server containing a fair amount of (legally-obtained) media files. When additions are made to this set when I am away, I would like to be able to sync these files to the remote copy on ...
6
votes
1answer
3k views

How to tell rsync to skip files on a damaged hard drive block, instead of being stuck trying to read it

I am trying to recover files from a disk that has hardware errors. The disk was repaired by disk utility, but it told me that the disk is damaged, so I need to backup everything before a failure will ...
1
vote
1answer
402 views

Run cygwin command from windows command line

I am trying to make PhpStorm run vagrant rsync when files are changed, because built-in rsync-auto fails with my deep directory structure. I am able to setup watcher in PhpStorm settings, but I don't ...
0
votes
0answers
11 views

ftp or rsync equivalent on windows 7 to acquire entire directory [duplicate]

I am not a Windows User, I am much more comfortable in Linux. My institution blocks ftp and rsync from my local Apple machine, and forces me to log on to a Windows 7 Virtual Machine. I want to ...
0
votes
2answers
28 views

Copy drive A to drive B on mount

I need some help with the problem of an automatic copy from drive A --> drive B. I want to detect a drive on mount as A - 1st mounted drive is A, as source drive. Detect the 2nd mounted drive as B - ...
3
votes
1answer
379 views

Rsync backups on btrfs very slow

My environment is Ubuntu 15.04 with kernel 3.19.0-28-generic and Btrfs v3.17. I have two identical external USB hard disks that I use with my backup script. One of them is formatted with btrfs and ...
0
votes
1answer
212 views

rsync directories that need sudo permissions on the remote server

I have one local server, let's call it as A, which has access to a remote server. I want to synchronize with rsync a directory from the remote server to the local one, and I want to put the ...
0
votes
1answer
52 views

Bash Script for mounting share and starting rsync

There is a need to migrate data from one server to another as we begin decommissioning the first server; the first server is an OS X 10.9.5 machine. I would like to devise a script that, when ...
0
votes
3answers
63 views

Rsyncing directories through ssh tunnel

I have 3 computers/servers, let's call them as computer A, computer B and computer C. Computer A has access via ssh to computer B. Only computer B has access via ssh to computer C. Computer A ...