rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.

learn more… | top users | synonyms

1
vote
3answers
32 views

rsync adding extra directory to command

I'm scripting an rsync command, and currently I am trying to do something like... rsync -av -e ssh $DATASTORE/usr/local/somepath $DESTDIR/usr/local/someotherpath/ if I echo $DATASTORE it shows ...
0
votes
1answer
23 views

Rsync dry-run statistics- Different statistics after executing 'cp' and 'rsync' commands

In order to generate some random files, I have created a script which is as follows: #!/bin/bash for dir in `seq 1 10` do mkdir /root/mandar/RsyncSrc/$dir cd ...
0
votes
1answer
30 views

rysnc not sending over changed files [on hold]

I am using codeship to deploy my code to my server on digitalocean. I am using rsync to send the code over but it is not correctly sending over the files that have changed or have been added. For ...
0
votes
2answers
17 views

Merge (combine) directories using rsync

I need to create deploy script to combine directories ├── LIB_COMMON │ ├── file1.php │ ├── file2.php │ ├── file3.php │ └── file4.php ├── LIB_CZ │ ├── file2.php │ ├── file3.php │ ├── ...
1
vote
2answers
47 views

tunnel rsync:// protocol over ssh

on my LAN (debian server, windows client) I use rsync:// protocol with this code cwRsync\rsync.exe -avLP --force --append-verify rsync://rsync-usb@server/rsync-usb/* usb/ I have read, that rsync in ...
0
votes
2answers
30 views

rsync partial LVM volume to Remote Directory

Can I rsync a full hdd partition (which is inaccessible) to a remote directory? Inaccessible means it cannot be mounted, it was part of LV volume merged with other HDD which is faulty and removed ...
0
votes
1answer
41 views

Windows to Linux (rsync and ssh) [closed]

I'm trying to backup the folders in Windows Pictures to a remote Linux directory. This is what I have: rsync -av ssh /cygdrive/c/users/Owner/Pictures/ blah@192.168.1.10:/var/files/ImageSync/ I got ...
4
votes
3answers
104 views

Copy from remote server which doesn't have rsync

I need to recursively copy a folder from a Ubuntu remote server where I have ssh access. I don't want to follow symbolic links, nor to copy permissions/owner/group, because my client system (Ubuntu ...
-1
votes
0answers
15 views

using rsync for synchronizing multiple sources to a single destination [on hold]

i know that rsnyc is good for mirroring remote forders but is it possible to to use it to synchronize many folders to a unique destination, knowing that i want it to delete a file if is it removed ...
1
vote
0answers
20 views

Lsyncd not working on Mac 10.9

I'm attempting to use lsyncd to automatically move files to my local development server. My host is OSX 10.9. SSH on the server works. I can connect using ssh from the host. I am using an SSH key to ...
1
vote
1answer
37 views

how to make rsync to log deleted files

I'm using rsnapshot (which use rsync) to backup files from my web server to local Linux box (Synology) Files, deleted on the web server are deleted on the Linux box, as expected. The problem, that ...
0
votes
1answer
31 views

rsnapshot backup not working?

I installed rsnapshot and configured it to make backup every hour. But the issue is all backups that are made not working. Let me explain to you, I made 3 backups hourly.0, hourly.1 and hourly.2. ...
1
vote
2answers
33 views

Interrupting rsync with ctrl-c, should I use `--partial` or `--append`?

I would like to interrupt rsync with ctrl-c (let's say after half the file has transferred) and resume without having to resend the data that has already been transferred. The stackexchange/google ...
2
votes
1answer
34 views

How to rsync only a specific list of files to the same location on another server

I have a list of files: /location/file.txt Content of file: /location1/file2.abc /location2/location3/file1.abc /location4/location5/fileX.cde I'd like to copy files to another sever like this: ...
0
votes
1answer
13 views

Why is rsync truncating this path?

I'm trying to synchronize a set of remote files via an rsync daemon, but the resulting path is missing the initial path element. $ rsync -HRavP ftp.ncbi.nih.gov::refseq/H_sapiens/README 2015-05-11/ ...
1
vote
1answer
25 views

What happens if I move the hard drives used by Rsync to another computer, and keep syncing them with it?

I realise the question is confusing, so allow me to elaborate. I apologise for the phrasing, as I wasn't sure how to put it. Here's the scenario: As my backup, currently my Mac launches Rsync every ...
0
votes
0answers
35 views

Working with Rsync and changing archives

I'm working with Acronis archives that I want to transfer offsite using rsync (since backing up via FTP or SMB is too troublesome with Acronis via internet). I`m using Acronis to backup Windows ...
0
votes
0answers
10 views

What folders do I leave out when trying to setup a backup for a Raspbian (Debian) install on a Raspberry Pi 2? [duplicate]

More specifically I'm going either with rSync or something similar to backup the root of the file system to another computer remotely. What do I leave out?
1
vote
1answer
33 views

Copy a rolling “last 2 months” of files

I have a friend who is a photographer and she has a lot of large files as a result. Our current solution is where some files are delivered to my house. I don't have the storage capability to store all ...
1
vote
1answer
17 views

How do I run inetd at startup on OpenBSD?

I am trying to backup my Synology NAS to my old NAS. The old NAS has to be an rsync compatible server (according to Synology), and the original OS didn't support it. Fortunately OpenBSD supports my ...
3
votes
1answer
48 views

Can rsync fix time stamps without redownloading?

I have mirrored 100 GiB of files. On my mirror, some of the timestamps and maybe file permissions are wrong. I would like to use rsync to fix this. The server from which I have downloaded has more ...
6
votes
1answer
291 views

How does rsync resolve conflicts?

What if machine A and machine B shares have a directory previously in sync via rsync, and A changes a file and B changes the same file, and you rsync from A to B? Is it perhaps anything like a merge ...
0
votes
0answers
36 views

Trying to setup a 2 way file sync in Linux

I am trying to setup a 2 way file sync in linux of reasonably small data-set. I would like to replicate data over WAN so distributed filesystems like gluster are not in point of my interest - they are ...
2
votes
1answer
245 views

Why is rsync not found?

rsync -avP /home/user/.profile hpux3:/home/user/.profile bash: rsync: command not found If I did ssh to hpux3 machine rsync version 3.1.1 protocol version 31 Copyright (C) 1996-2014 by Andrew ...
1
vote
1answer
41 views

configuring rsync for incremental backup and recovery

The setup is a NAS box on a lan mounted as NFS and the source is a laptop running an old kubuntu 10.4. Rsync has to be run as a local file copy, NAS box doesn't support an rsync daemon. How do I ...
2
votes
1answer
113 views

How can I check if rsync made any changes in bash?

I have a script which uses rsync to sync data in a remote -> local scenario. Immediately after the rsync command is run, a check to see if the error code equals zero or not. If its zero, further ...
1
vote
0answers
21 views

delete .gitignored files with rsync

I often need to use rsync to synchronize a local with a possible remote directory, while ignoring exactly all the files git would ignore because of its .gitignore configuration. To do so, I am ...
3
votes
1answer
59 views

How does rysnc work over ssh?

When the rsync program is invoked over ssh what does the interaction between rsync and ssh look like? What feature of ssh is rsync using? I am interested in the interaction between rsync and ssh.
-2
votes
1answer
76 views

SSH error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I ran rsync (cygwin) and got this error. I think they changed the Red Hat Linux OS from version 5 to version 6, last night. Would that be the cause of this error message? What do I need to do to fix ...
0
votes
3answers
23 views

How to remove directory from rsync share completely

Is there any rsync command that can remove some remote directory from rsync share completely? I mean delete not only directory content but the directory itself. And without rsyncing the entire parent ...
0
votes
1answer
40 views

Rsync interrupted by “No space left” message

Say I want to rsync /dir of a remote host to the /dir (same path) of a local host. For that I would do rsync -artz root@remote-host:/dir/* /dir/ from my local host. The /dir on the remote host ...
1
vote
1answer
27 views

File corruption using rsync, multiple rsync processes, moved/renamed source file

I'm encountering some file corruption when using rsync (that is, the file contents do not match the source file). I can understand the file becoming corrupt if it is being written to while being ...
1
vote
0answers
27 views

sync two zip archives (with minimal I/O)?

zip itself can freshen an archive to reflect the current filesystem (e.g. -FS). It only updates zip entries with outdated timestamps. Is there a tool that updates a 2.zip file so that it becomes ...
2
votes
2answers
77 views

Make rsync move (not copy) files on local file system

Can I make rsync to move large amount of files instead of copying them when on local filesystem? I would like it to behave like improved mv command. I know about --remove-source-files option but ...
1
vote
0answers
32 views

Absolute path in rsync dry-run statistics

I have executed following command in order to get the list of files that would be transferred to remote server if rsync is executed: rsync -avzm --stats --safe-links --ignore-existing --dry-run ...
1
vote
1answer
49 views

Rsync Excludes Folders

I am running a rsync script and I want to exclude certain folders. I know with rsync you have to create a .txt file and add all the excludes in there but I am wondering is it possible to just have a ...
0
votes
0answers
12 views

sync source A into destination B

I want to create a perfect copy of A in B. I'm using this command, but is working good only on same existing folders rsync -h --progress --stats -r -tgo -p -l -D --delete /A /B if folder x exists ...
0
votes
1answer
26 views

rsync excluding empty files

I recently discovered that a few files on a volume had been mysteriously truncated - or more accurately, replaced with a zero length file. Fortunately, these files were hard-linked from multiple ...
2
votes
0answers
75 views

how to get rsync to link identical files with --link-dest option if an old file already exists? [SOLVED] [closed]

SOLVED rsync > v3.1.1 will now replace identical files in target and --link-dest dir with a link to the --link-dest dir's file in the target. Saves lots of space. One might think that --link-dest'ing ...
0
votes
2answers
56 views

Rsyncing files from server to local machine automatically

I currently have a crontab job running on my machine every friday at 3 AM as a back up method. The job runs a bash script which runs an rsync command to sync files from the server to my external hard ...
1
vote
1answer
17 views

How can I do an rsync that asks for a confirmation for each individual file?

I have a small number of files to sync from one server to another, however there are some files I want to exclude from being synced. I'd rather not have to add them to a --exclude pattern if I can ...
1
vote
0answers
52 views

How rsync --compare-dest works

I know there's a very similar question here, but the accepted answer has nothing to do with rsync, and the OP's solution doesn't apply in my case. I'm trying to get all the updates from a CentOS ...
1
vote
1answer
69 views

Bash script to get the result from rsync transfer and zip it as a directory in the original directory

OK, I guess this is weird. I have a small stage.sh script very simply has a bunch of commands: if [ "$(whoami)" == 'David' ]; then rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ...
0
votes
0answers
37 views

rsync question about a directory

I went ahead and used rsync to back up a root directory called /files my exact commands werersync -avzh /files willc66@server.com:/backup, inside my /files directory I had 2 sub directories home and ...
1
vote
0answers
84 views

Samba File Server Configuration and Sync for Redundancy

I have two boxes which I installed Samba on. For now, I have a single user that access the server, however, I need to expand as to deploy in a production network. Below is what I want to achieve. ...
2
votes
1answer
212 views

Understanding why such a discrepancy in network transfer?

Summary: I can't understand a peculiar discrepancy in network transfer. Why is there such a discrepancy in syncing from one machine to the other and vice versa? Also: Given the maximum network ...
1
vote
1answer
37 views

rsync with weird files name appended

I'm doing rsync every 10 minutes via cronjob with a 3g Dongle outside on a field. The rsync will send data to my EC2 server and there I can check the files being sent. But I encounter the destination ...
-2
votes
1answer
24 views

An incremental or another full backup? [closed]

After using rsync to backup a file system, if there has been dramatic change in the file system since the last backup, is it still good to do an incremental backup? Is there a rule of thumb about how ...
0
votes
2answers
212 views

Parallelise rsync using GNU Parallel

I have been using a rsync script to synchronize data at one host with the data at another host. The data has numerous small-sized files that contribute to almost 1.2TB. In order to sync those files, ...
1
vote
2answers
37 views

Rsync “finds” files that are implicitly excluded

I have a semi-working rsynccommand that I have combined with the find command on a linux box to do a simple file transfer of a specific type and date. Here's the command: rsync -avx --timeout=30 ...