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
1answer
94 views

rsync: show when newer file on destination is to be overwritten

I'm running a command that updates some files to a centralized server. The command does first a --dry-run to show which files will be transferred. It may happen that a newer file on server may have to ...
1
vote
1answer
121 views

Incremental backup script (shared hosting)

Please consider I'm not sys admin so I have only limited experience with the tools involved, I know there are similar question but I cannot find anything that suit my needs. In a similar question ...
1
vote
1answer
333 views

scp can't upload/download files even though ssh works

I can connect to my server using ssh dziura and it works as it should, but I have problems copying any files to/from the server using rsync/scp/sftp. Scp: $ scp dziura:/home/kossak/file_remote.txt . ...
0
votes
1answer
63 views

Calling a shell rsync command from C

I am creating a basic C file in order to learn the basic Linux commands a little better. I am trying to implement a tar back up function. I am struggling to implement it in C (still learning C) so ...
0
votes
0answers
25 views

How to force rsync to recopy files with equal timestamp but not newer ones

I need rsync to recopy all files where timestamp is equal on the receiver, skipping newer ones.
0
votes
1answer
300 views

Why does 'rysnc' change file-system permissions?

I am trying to use rsync to sync files from my laptop (Ubuntu 14.04) to an external disk. When connecting the disk I start the sync with the following command: rsync -av --delete /home/alexander/...
11
votes
4answers
65k views

rsync without prompt for password

I need to execute rsync, without it prompting me for password. I've seen in rsync manpage that it doesn't allow specifying the password as command line argument. But I noticed that it allows ...
1
vote
2answers
49 views

Using rsync to synchronize directories

I have a script that I am using to backup a directory on a CentOS 6 machine. It's very basic but it is executing rsync -a remote:~/original ./backup This works fine: it is copying the contents of ...
1
vote
1answer
122 views

rsync with --link-dest options doesn't create hard links [closed]

I created a backup script that should create incremental backups every day and a full backup once a week from a remote host to my external backup hard drive. (short example at the bottom) The script ...
0
votes
1answer
179 views

SSH known_hosts ignored on one machine

I am experience strange behavior using ssh with a jump host. While the setup works on machine A (cygwin, OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015) it does not work on machine B (OpenSSH_6.7p1 Ubuntu-...
2
votes
2answers
88 views

How to get information about files being copied to my machine by remote rsync command?

I am rsyncing a directory from machine B to machine A. rsync command is run on machine B. On machine A, what kind of information can I get about this rsync process (progress/amount of data downloaded ...
1
vote
1answer
81 views

Rsync over custom shell with fifo

I'm trying to use rsync over a custom shell created with fifo. However I cannot find a way to deal with it : The script initsh to simulate a standard shell by fifo : #!/bin/bash rm fin mkfifo fin ...
1
vote
2answers
53 views

Is it necessary to transfer `tar` files through `rsync` in archive mode?

I have a bunch of tar files in my machine which I want to transfer to an external hard drive (EHD); they where created preserving permissions (using the -p flag). I plan to use rsync to copy them to ...
2
votes
2answers
296 views

rsync option to exclude partial files

We are using rsync to sync two folders on same machine. Files will be written to a source folder from another application. We have the problem that, even if a file is not completely written/copied to ...
2
votes
1answer
51 views

Is it feasible to update the modified times only without copying files when using rsync?

The modified times of a large amount of local files are incorrect. I want to update the timestamps by syncing the timestamps on the server. It would be time-consuming if the files themselves are ...
0
votes
0answers
268 views

sshfs connection breaks, and cannot be re-established (“Stopping User Manager for UID 65534”)

A Raspberry Pi device connect to my NAS via sshfs, and saves a large backup on it. After some time, the sshfs connection breaks, resulting in a broken backup. At the raspberry system, the sshfs ...
15
votes
2answers
30k views

Rsync Error 23: Can I tell which files were not transfered?

I ran sudo rsync -va --progress from the root of one ext. drive to a folder on another ext. drive. The reason is that the source drive has an error-ful NTFS and I don't have access to a Windows PC to ...
1
vote
0answers
423 views

rsync + renaming the copied files

Is it possible to change the name of the destination file (add some timestamp as a prefix) when copy is done by rsync ? For example, I can use the following command to change the name of the ...
2
votes
1answer
244 views

Rsync backup script for multiple servers

I have simple script that backing up data from remote server via ssh using rsync. I have external config file for that. In this config file I have variables: OPTIONS, REMOTE_IP, SOURCE and ...
1
vote
1answer
132 views

Getting error with rsync and scp

My issue is an odd one. I am logged into my University's server with my host name and all that good stuff. I am able to copy files from my local computer into my school's account. My issue, is the ...
2
votes
1answer
2k views

lsyncd and additional parameters for rsync

Currently Im using lsyncd to monitor data and sync them (same machine) settings{ logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd_status.log", ...
0
votes
0answers
141 views

rsync, find, and other useful commands for synchronizing a large quantity of data

Here is the structure of the folders I would like to consider: /mnt/network/ is my network drive and /local/ is my local folder. What I want is to synchronize the content of these two folders (...
1
vote
3answers
1k views

Copy and get files from one machine which is connected via ssh to another one

I read a lot of answers to questions very similar to this one, but I couldn't find something that really fits my problem. Here's the situation. I have a machine whose address is "machine1@address", ...
0
votes
2answers
82 views

rsync directory tree structure with restricted depth and exclude specific folders

I want to rysnc my folder and subfolder tree structure without their files but with a max depth of 3 (/folder1/folder2/folder3) and exclude specific folders (ex. cache/) I have tried this command: $ ...
0
votes
0answers
18 views

rsync directory and subdirectories structure with max depth and except some specific folders [duplicate]

I want to rysnc all folders and subfolders only without their files but with a max depth of 3 (/folder1/folder2/folder3) and exclude some specific folder (ex. cache) I have tried this: $ rsync -azv -...
-2
votes
1answer
57 views

Update files from server to server

I am building a tool using bash script, to move the files from server to server. But the tool for update, so I don't want to overwrite the exist files, in the other server from the first moment. I ...
0
votes
2answers
325 views

checking rsync run status

We have a cron job running to rsync files from one server to a different host. The cron runs daily at midnight. The file copy is critical for us so we want to monitor the backup runs. We want to ...
2
votes
3answers
141 views

How can I keep rsync from using encryption and compression for the file transfers after the connection is authorized?

I understand that a secure connection (i.e. ssh) is needed to authorize a connection to the remote server. But after that is authorized can the data be transmitted without encryption and compression ...
0
votes
0answers
59 views

rsync failed on SSH even after changing Maxstartup option in sshd_config

I am using following command to copy file from another system. sshpass -p 'XXXXX' rsync --partial -avvvv --inplace --rsh=ssh -e 'ssh -vvvv -p 62002 -o StrictHostKeyChecking=no -l username' 127.0.0....
7
votes
5answers
3k views

force copying a corrupted home directory

I have a home directory in a disk that has a lot of corrupted files. I am trying to save most files as possible. I am trying to create a backup of my home directory on an external drive using tar -...
0
votes
0answers
37 views

Exclude pattern not working for rsync

The following command is working correctly for copying only files matching Mem* rsync -uvma '--include=*/' '--include=**/Mem*' '--exclude=*' ../srcdir/ /targdir I would like to also exclude a ...
1
vote
1answer
2k views

RSync - Permission denied (13) while executing rsync as a root

I am trying to set up hourly rsync beetwen my local machine and remote server. I have already created a ssh certificate to enable login less connection to remote machine. Now however when I execute ...
2
votes
2answers
114 views

RSync Error in script

At my job, we have a central Backup server, running Debian Wheezy, and on-site servers at each site, also running Debian Wheezy. A few weeks ago, the central office tech emailed me that the backup ...
0
votes
1answer
27 views

Verbose copying of complete folder deleting target

I want to copy a development folder that has some changes into the server folder with rsync. Without rsync I would do it like rm -Rf /var/www/site cp -a dev /var/www/ But I would like to use rsync, ...
1
vote
0answers
34 views

Exchanging huge file trees between disks

I have two 1TB disks and a huge file tree on each. Each takes up about 85% of their disk. I want to swap/exchange the trees between disks. The only spare (USB) disk that big I have is nearly full. ...
1
vote
1answer
584 views

rsync and xfr#1, to-chk=0/1, what do they mean?

I do stuff such as :- $ copy debian-8.2.0-amd64-DVD-1.iso /media/shirish/4719-38E5/ Copy here is an alias for :- $ alias copy alias copy='rsync --progress -ravz' When it does the command it ...
1
vote
2answers
30 views

I am trying to copy files from a server to my local directory using rsync.I don't want to copy the files which are copied earlier and being removed

I am trying to copy files from a server to my local directory using rsync.But after some times local files are being moved to archive.So, next time when I will copy the contents from the remote ...
0
votes
1answer
358 views

why does rsync log-file not contain updates to regular files when dry-run?

In dry-run-mode, the log file does not contain changed/ updated regular files, and no deletions at all. It only contains changed and created directories. Yet, when executed without dry-run, the log ...
2
votes
1answer
241 views

How to backup readable but not writable files using rsync?

I am using rsync to backup some folders in my home directory to a remote server using the following commands: cd rsync -Favz --inplace --delete --delete-excluded folder1 folder2 folder3 remote-server:...
2
votes
1answer
630 views

rsync complains about symlinks

I'm using the dry-run (-n) option of rsync to compare directories on two different systems. Everything works fine with standard files and directories. However, when I use a directory that includes ...
0
votes
1answer
145 views

rsync command not preserving permissions

rsync is not preserving permissions/ownesrship after file transfer. Here is the scenario Source host(192.168.2.14 from where files are copied): Source Path # ls -l "/shareddata/tesz/" total 4 ...
2
votes
1answer
14 views

How do I avoid the creation of root folder of the source in the destination when using rsync?

For example, when I copy all *.txt files in /tmp/src and its subfolders to /tmp/dst by rsync -avm --include='*.txt' --include='*/' --exclude='*' "/tmp/src" "/tmp/dst" it makes src under /tmp/dst. ...
1
vote
3answers
770 views

rsync command does incremental copying or overwrites the file?

rsync command is used to sync a folder data to another folder. I want to know if this command overwrites the entire file and sync or copies only the new file or changed file. Does it prompt if similar ...
0
votes
2answers
74 views

Delete destination directories with rsync (contents as well as parent)

I have a versions/ directory on a remote server to which I have only rsync daemon and ftp access. This directory contains a set of subdirectories, each named after the datetime of a deployed codebase (...
2
votes
3answers
166 views

List transient files by numerical value having number greater than a given constantly varying filename

I've a directory having constantly changing filenames (by numerical value) listed as: -rw-rw----. 1 root root 10493952 May 7 10:39 A0000000.LOG -rw-rw----. 1 root root 10493952 May 7 08:38 ...
0
votes
2answers
57 views

rsync question syncing source with destination (archiving surplus files on destination)

rsync is pretty clear to me but I have a specific task I could not figure out yet. I want to sync source with destination 1:1. I believe the --delete option would cover that. So if I add a file on ...
0
votes
1answer
30 views

Cleanup archive and archive files only if sources exist using rsync, scp or sftp

I have to cleanup an archive directory on a remote host only if there are files to be archived; the source files are on the same host. I should run something similar to: cd $source_dir if [ -f *.tar....
0
votes
0answers
235 views

Backup debian folder to qnap nas with rsync repeatly every day

Sorry for this dummy question, but I really stuck here. I have debian web server, which have a backup with usb hdd. I would like to get that backup and send it to my NAS. My NAS is QNAP model TS-231, ...
1
vote
1answer
71 views

Syncing folders where multiple files are partially changed

I have following directory structure on remote machine ALLLibs/LibA/LibA.1 ALLLibs/LibA/LibA.2 ALLLibs/LibB/LibB.1 ALLLibs/LibB/LibB.4 for info LibA.1 and LibA.2 are version of a directory, ...
2
votes
3answers
134 views

Migrate mail from dovecot on centos to dovecot on debian

I am trying to migrate a number of user mail accounts from dovecot 1.0.7 on a centos 5.11 server to dovecot 2.1.7 on a debian 7 server Foolishly I thought I could simply replicate the Maildirs from ...