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

0
votes
2answers
143 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
27 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
29 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
113 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
72 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
59 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/ ...
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
37 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 ...
2
votes
1answer
69 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
98 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 ...
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
417 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 ...
1
vote
2answers
275 views

Rsnapshot --exclude-from file not working for sub directories

I am doing a remote backup. This are my rsnapshot config. config_version 1.2 snapshot_root /data/sbackup/ cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh ...
0
votes
1answer
54 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 ...
1
vote
1answer
203 views

Proper rsync flags for backuping from ext4 to ZFS

I have a home server running Ubuntu 14.04.3 LTS with an ext4 file system, to which I regularly backup data from various devices. Now I have set-up an external USB HDD with ZFS file system and would ...
6
votes
1answer
168 views

Why does rsync read .bashrc and not .profile?

rsync is a non-interactive program that logs into other machines. It shouldn't need the init file for an interactive shell session, and it should absolutely need the init file for a login shell. Or so ...
0
votes
1answer
224 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
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 ...
1
vote
1answer
18 views

Spread rsync over several separate calls

I need to transfer a very large file with rsync (~1TB), but only transfer during a certain times (at night). The transfer takes longer than a single night, so I'd like to spread it across multiple ...
0
votes
0answers
15 views

Why did rsync removed files from my source directories?

I generated a subset of files to copy and saved it into tocopy.txt. Then I ran: rsync --progress -v --checksum --itemize-changes -r -a -z --files-from=/tmp/tocopy.txt user@server:/destination ...
0
votes
0answers
21 views

Multiboot flash drive backup

I have a 16GB flash drive, formatted in FAT32 which contains multiple live linux distros, syslinux bootloader and personal data. I would like to make a backup of it and restore this backup on 64GDB ...
0
votes
0answers
68 views

IO errors from ESXi to OS X Server (NFS or rsync)

Ok, so here is the context. I have a OSX Server 10.8 inside a VM. This VM is attached to an iSCSI volume (from a thecus bay where it is a RAID5). This volume is shared via NFS and AFP. I have some ...
0
votes
0answers
178 views

Clean way to preserve permissions in backups from Linux stored on NTFS

With cygwin, rsync and SSH I have set up a backup mechanism that copies all of the vServers (running Debian) contents to my local NTFS hard drive (running Windows 10) and it works. Partially. I use ...
1
vote
1answer
239 views

rsync: connection unexpectedly closed - Migration from AWS to Digital Ocean

I'm trying to migrate my Django site from AWS to DigitalOcean. I'm following this tutorial My problem is that I can't rsyncmy files. Just as info, I'm able to connect via ssh to my Digital Ocean's ...
0
votes
0answers
104 views

How to kill or abort ssh and rsync reliably by parent process

I am calling rsync from my Qt application which in turn uses ssh to sync data from a remote server. The user of my application however could cancel or abort the sync process but the rsync.exe or ...
0
votes
2answers
184 views

Rsync over SSH and passwordless key security

I need to send files from a group of servers to a remote server. My plan was to use rsync over SSH as it meets my requirement of a secure connection and the ability to delete from source upon ...
2
votes
1answer
273 views

Mac OS - running a bash script for rsync with different network credentials

I want to run rsync to copy files from local mac folders to a corporate network drive. To access the network drive I have to mount it using different credentials compared to my local user account. ...
0
votes
0answers
25 views

How much upstream traffic should a transfer over TCP produce

When a file is downloaded via some TCP-based protocol, there is also data flowing in the other direction – acknowledgement packages etc. Now if I watch some network monitor, I wonder if all of the ...
2
votes
1answer
53 views

Why isn't ownership preserved with “rsync -a” on my Mac?

I am copying files from an internal disk to an external one attached by USB (both are formatted as Mac OS Extended (Journaled)): root# rsync -avi /Volumes/int_hd/ /Volumes/ext_hd/ All directories ...
0
votes
0answers
34 views

Unable to change owner on a mapped drive directory

I am using a script to copy files from amazon instances to a network drive using rsync. After the file copy I am trying to change the owner of these transferred files but am not able to. What is the ...
0
votes
1answer
93 views

How do I make Unison behave like rsync?

I have two roots, /sync and ssh://bob@remotehost//sync. These roots contain three subfolders: paul, bob and sam. I currently sync them using the following script: rsync -a --delete --delete-excluded ...
1
vote
1answer
40 views

Limit rsync to available space on destination

I have a directory, /data/snapshots, which I'd like to archive to an external drive mounted at /mnt. The external is 2tb, /data/snapshots is much more. If I: rysnc -av /data/snapshot /mnt Then ...
0
votes
0answers
97 views

Linux: sync/merge two (or more) directories, but keep older file versions?

got alotta help throughout the time just by simply scrolling and crawling through the vast landscape of qualified answers here from you, now's the time to ask my first question and it looks rather ...
0
votes
0answers
124 views

Making mbuffer faster

I'm trying to transfer files as fast as possible across a 10 gig network connection. Up until now, I've been using rsync to move large files across the network, but I'm trying mbuffer now because I've ...
0
votes
0answers
154 views

How to roll back rsync backup, and having trouble targeting a particular partition for backup

I'm using Linux Mint 17.1. I tried to set up a backup with rsync using the following command: sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/media/*"} /* /media/hex/ I just installed an m.2 SSD ...
0
votes
0answers
46 views

Accessing rsync folder after windows re-install

I am using cygwin to backup my Debian VPS to my Windows PC. All is fine, but if I re-install Windows I can't access the backup folder until I change the owner of the folder and all its children. ...
1
vote
1answer
56 views

How to maintain a remote cloned directory with rsync?

I have SSH access (using a SSH key pair) to a remote machine. I want to keep a directory on the remote machine exactly equal to a given local directory (one way sync). The check for file equality ...
0
votes
0answers
146 views

rsync tree but ignore folders where a .git directory exists?

All I found were questions how to ignore the .git directory when using rsync - my question is a little different: I want to ignore the whole tree from the point where the .git directory exists. ./ ...
0
votes
1answer
38 views

How to properly migrate a constantly changing set of files from one NAS to another?

I am moving 4.4TB of files from one NAS to another, both running Ubuntu. However there is one thing that made me a bit worried whether rsync would work or not: there is a folder whose contents that is ...
0
votes
1answer
56 views

Fastest way to duplicate encrypted hard drives?

I used hard drive duplicator to do the sector-by-sector duplication of hard drives. I think it took about 5 hours. Pros: easy unattended, computer-free operation Cons: hard drive size ...
1
vote
1answer
76 views

Rsync behaviour/differences & newbie

From my understanding, rsync over SMB tries to build a file list each time on source/destination to check any changes have been modified before a copy takes please. I’m trying to understand the ...
0
votes
1answer
186 views

How to safely synchronize two folders without duplicates?

I have an account on mega and I want to synchronize it with a folder on my computer. The problem is, that this account is public to some extent so I can't just use rsync with --delete in case someone ...
0
votes
0answers
24 views

Use rsync on bare device

Is it feasible to use rsync on bare device files, like rsync /dev/sdb user@remote:/dev/sdb or even rsync /dev/sdb user@remote:images/sdb.img to sync two drives or a drive image?
1
vote
0answers
210 views

How to rsync root files over non-root ssh?

I have two machines, both providing no root login, but provide sudo root access. Now I like to initate a rsync transfer of root files over ssh. Is there an easy way make the the root access given by ...
0
votes
1answer
434 views

Rsync-like automatic delta backup of a removable hard drive on windows

Well a lot of questions have been asked on the SE network about using rsync on Windows. But nothing seems to really do the trick so I'd like to expose the specific mechanism I need to setup. Lets say ...
0
votes
0answers
222 views

Synchronize two folders over sftp?

I have a cloned git repository in a directory and a sftp server, I want the server to be in sync with my repository. I've been trying multiple Atom/Sublime Text plugins with no luck, they only upload ...
0
votes
1answer
137 views

How to delete folder and files in the destination that are missing in the source (before copying)?

I sometimes have the problem that rsync tries to transfer a new file from the source to the destination (both have the same space) when there's already not enough space left, which causes this error ...