Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon

learn more… | top users | synonyms

-1
votes
0answers
27 views

automate a process to download, convert and upload files

I have to download .wav files from voip server locally and after converting those files to mp3 format i want to upload the file to a dashboard server. To acheive this I have setup an rsync script: ...
4
votes
1answer
2k views

Using a shell script to check if rsync made any changes

I've got a bash script that rsync's two directories. Sometimes there's a change, odds are there's nothing. I want to run a command only if rsync actually made a change (add/update a file). ...
-1
votes
1answer
25 views

Fastest way to copy small files over secure network without regard for file mod times or size

I want to sync files in dir1 and dir2 (two different servers). I do not care if the file sizes or modification times differ. EXAMPLE: dir1 contains file1, file2, file3, file4, and dir2 contains ...
0
votes
1answer
34 views

rsync: how will rsync react to a file copy from a mounted share to a remote location?

I have a task to create a passive sync between a production server and a staging server which are located in two different geographical locations. The environment is fully Linux based (CentOS/RHEL) ...
1
vote
1answer
1k views

How do I get rsync to listen on two different ports via xinetd?

I have multiple servers that receive files via rsync on different ports. I'd like to merge them into the same physical server and let the clients continue to direct their files to the same port they ...
-1
votes
1answer
50 views

Moving large size directory using rsync

I plan to move from linux o/s a directory which is mounted on SAN(offboard) to external storage for backup. The dir size is 14TB. I do have experience moving files in/out using rsync but never done ...
2
votes
0answers
31 views

Solution for file data backup, versioning and replication

We have a growing set of data files (.wav files, image files etc) which are data, i.e not part of the application code - uploaded and modified by users. The number of files is in the 1000s and the ...
0
votes
0answers
66 views

GlusterFS snapshot backup solution

We're looking for a fast way to take point in time snapshots of our gluster bricks. It is not crucial that it is a perfect point in time snapshot (ie if files change/get added/removed during the ...
2
votes
3answers
1k views

Using Rsync to backup a Windows Share

I have a Windows 7 box that I want to back up to an Ubuntu machine. I have mounted a Windows share on the Ubuntu box (using CIFS/Samba), and I want to use a cron job to rsync what's on the mounted ...
4
votes
3answers
5k views

Using rsync from msysgit for binary files

I have three windows boxes that are connected to a linux box on my network in various ways (one's local to the network, one is a laptop and may or may not be local, and the other is my work desktop). ...
1
vote
0answers
32 views

Convert raidz1 to raidz2 via a temporary drive

I set up a new NAS server a few months ago and set it as RaidZ. I'm re-thinking that decision and would like to grab an extra drive and move to RaidZ2. Before everyone replies that this isn't possible ...
1
vote
1answer
1k views

rsync unexplained error & received SIGINT, SIGTERM, or SIGHUP

I created a batch script to back-up our server: #!/bin/bash user=$1 # create user dir ssh root@local.backup.tst -p 5774 mkdir -p /var/backup/server.tst/incremental/$user # backup mail dir rsync ...
0
votes
1answer
19 views

Inverse of rsync --copy-links?

Server, a directory with a bunch of symlinks in it pointing to things I want to sync: /home/shish/tosync/video.mp4 -> /home/shish/videos/video.mp4 /home/shish/tosync/code.py -> ...
0
votes
3answers
304 views

Stop rsync from deleting files that are being uploaded

I have a script which will upload files from a specific directory (with rsync) to the server, but in the mean time another script will pull files from the server (also with rsync and with the --delete ...
1
vote
2answers
548 views

rsync from linux host to fat32

i like to backup my linux based NAS (small files like picutres) to an attached USB Disk with FAT32. For this i like to use rsync. I know, that this will not work correct per default. rsync will sync ...
14
votes
4answers
7k views

Rsync daemon: is it really useful?

Are there any practical benefits in using rsyncd compared to rsync over ssh? Does it really increase speed, stability, anything?
-1
votes
2answers
125 views

Is rsync more robust than scp for connection reset?

On a big corporate firewall-ridden network, we have traditionally used scp to copy a few brand new files over from one machine to another, as part of the log-file rotation and analysis routine. ...
0
votes
0answers
10 views

Backup SugarCRM using RSync to copy the backup to new server and keep file permissions and owners in tact when restoring from the backups

Backup SugarCRM using RSync to copy the backup to new server and keep file permissions and owners in tact so a restore will have the correct file permissions and owners when a restore back to the ...
1
vote
0answers
16 views

rsync daemon without rsyncd.conf

Will rsyncd run without its config file (rsyncd.conf) ? What is its behavior if run this way? Backstory: So, I'm using rsync to backup user directories from (call it) server A, and it's working ...
2
votes
1answer
878 views

easy way to restore incremental rsync backup?

I have incremental rsync backups of a folder, created with: rsync --delete -a -v --backup --backup-dir="../backup_`date +%Y-%m-%d`" /orig /backups/dest so I have a copy of current /orig on ...
1
vote
2answers
909 views

s3fs Input/output error

I'm trying to set up a backup system with s3fs and the Amazon S3 service. I followed this this guide and this guide. Tailing /var/log/messages I get: Aug 28 13:37:46 server s3fs:###response=403 I ...
0
votes
2answers
44 views

Rsyncing to a compressed zpool

I've been Rsyncing from an NFS mount to a local zpool that has compression enabled on it. When I rsync, it copies every file over, not just the new/changed ones. Is this because the file size is ...
-5
votes
1answer
44 views

How to prevent attacker from taking advantage of rsync for destroy target server [closed]

Rsync is an awesome tool. But I think if one attacker is possible to intrude my server and take advantage of rsync for removing data of other server: sudo rsync -avzP --delete /tmp/emptyfolder -e ...
1
vote
0answers
28 views

Rsync does not delete destination files [rsync protocol / module]

An automatic backup script executes the following rsync command to sync a local directory tree with a remote one: env RSYNC_PASSWORD=$rsync_password rsync -aqrxz --delete --timeout=30 \ ...
0
votes
1answer
28 views

rsync not behaving the same in script vs shell

Afternoon ServerFault, I have hit a problem that I can seem to reach a solution to, I currently have a backup script that is meant to rsync VMs off our VMWare box onto our backup server, the problem ...
0
votes
0answers
60 views

rsnapshot: cp: preserving permissions – operation not supported

I am trying to use rsnapshot for backuping my server on mounted nfs filesystem, but it keeps failing on: /bin/cp: preserving permissions for `...': Operation not supported Backup configuration is ...
9
votes
5answers
3k views

Synchronizing very large folder structures

We have a folder structure on our intranet which contains around 800,000 files divvied up into around 4,000 folders. We need to synchronize this to a small cluster of machines in our DMZs. The depth ...
0
votes
1answer
23 views

How to act upon condition of whether a file updated via Rsync was updated

I think this is simple but I can't find anything in my googling, maybe I'm searching the wrong terms. I have a machine that syncs itself to another machine. If there are changes to a file on the ...
5
votes
3answers
5k views

Trying to setup chroot'd rsync

I'm trying to set up a backup server. I want to chroot each user (client) to its home directory, and only allow it to use sftp and rsync. I quickly discovered that I was not the only one trying to do ...
1
vote
1answer
44 views

Rsync keeps asking for password even though a secrets file is configured, what could be the reason?

I've configured rsync on one of my servers, the configuration looks like that: [root@pnmpg4 ~]# cat /etc/rsyncd.conf max connections = 2 log file = /var/log/rsync.log timeout = 300 ...
1
vote
1answer
36 views

Which compressed file formats are efficient with rsync?

Every system admin knows that rsync is the way to go if you need to do backups of large files, e. g. a database file: since it uses delta compression, it only overwrites blocks that have been modified ...
0
votes
1answer
56 views

rsync to unmounted webdav share

if I want to transfer files to a webdav share, can I do that directly to the server that the share originates from, or does it need to be mounted on the machine that I send the rsync to? The thing is, ...
1
vote
1answer
63 views

rsync using only spare bandwidth?

My scenario: Several rural schools Every school: One linux server Limited bandwidth (shared with all school PCs) Electricity not guaranteed (last to leave the school could cut all electricity) ...
1
vote
3answers
2k views

Rsync Exit Code Checker - Bash

I have a simple script on my home server to sync data to my backup drive to be stored. Right now it runs multiple rsyncs one after another. Sometimes rsync fails on one or two of them. When this ...
10
votes
4answers
2k views

Deploying Files To Multiple Servers

We have a central repository of files in say server-1 at /srv/www. Then we have N number of servers as well. We want server-1 to be able to deploy its files in /srv/www to all servers as quickly and ...
3
votes
2answers
3k views

How to delete empty source directories when moving folders with rsync?

rsync can be coaxed into moving folders very similarly and superiorly to traditional mv with the following options: rsync -axvvES --remove-source-files source_directory /destination/ However one ...
1
vote
1answer
90 views

Prevent rsync from deleting excluded directories

I'm using rsync through Ansible's synchronize-module with the following task definition: synchronize: src='{{ local_app_path }}/.' dest='{{ remote_app_path }}/' perms=no owner=yes ...
-3
votes
1answer
82 views

Looking For Simple, Fast Incremental Backup Algorithm Using RSYNC [closed]

I'm running a simple bash script that uses rsync to do an incremental backup of my web server every hour. What I'm looking for is an efficient algorithm to delete the proper backups so that in the end ...
1
vote
3answers
87 views

Quickest way to replicate small files on 4 machines?

I have 4 servers, all on a secure local network. Each server runs script.php (every minute). script.php reads from a local dir called /arc, does a file test, and writes a new file back to /arc. ...
5
votes
6answers
10k views

Rsync over ssh: “ERROR: module is read only” suddenly appeared

I've used from some time rsync/ssh to backup my shared host contents to my personal Synology NAS (212j for that matter), and it worked quite well. For information, I use a password-less ssh ...
0
votes
1answer
21 views

Running two mutually exclusive rsyncs on the same folder

I have files stored on two servers, A and B. I'd like to copy both into the same directory tree on server C. Is it safe to run both of these commands at once if A and B have the same folder structure, ...
-1
votes
3answers
329 views

chown during rsync from windows to unix

rsync: --groupmap=*:www-data: unknown option I am trying to add an option to my rsync line to set the group of the files transfered to have www-data as their group. When i add the option i get ...
0
votes
4answers
159 views

Rsync from a local laptop to a VPS with correct ownerships

So I have this workflow which works but is clumsy" RSYNC to ultrapress.co rsync -azP --delete /Users/rocketadmin/Sites/vagrant-local/www/wordpress-default/wp-content/themes ...
1
vote
3answers
6k views

Rsync command issues, owner and group permissions doesn´t change

I´m trying to set owner and group via rsync and it doesn't seem to be working. This is the command: sudo rsync -rlptDvz --owner=cmsseren --group=cmsseren /home/serena/public_html/ -e ssh ...
1
vote
1answer
471 views

Rsync failing with “file too large”

I am writing what should be a simple backup script to copy all of my media files to an external USB drive. There seems to be one file that it chokes on and I'm not sure why. Just trying to copy that ...
1
vote
2answers
1k views

rsync: mkdir “2014-11/.” failed: No such file or directory (2)

i'm write a script for automation copying file with rsync from server-a to server-b this is my script : #!/bin/bash NOW=$(date +"%Y-%m") rsync -au --ignore-existing /var/www/uploads/$NOW/* -e ...
4
votes
3answers
293 views

rsync many small files with long filenames takes a lot of bandwidth

I have a file storage server which stores files on disk using the file's sha256 hash as the filename, along with the file extension, and in three levels of directories, e.g. a PDF file with sha256 ...
0
votes
1answer
51 views

rsync on OS X changes folder's group name to _lpoperator

Here is how to demo the problem: Grab Terminal on OSX, and run cd ~ && mkdir abc && ls -l ~/ Here is the output about folder "abc": drwxr-xr-x 2 justin staff 68 Jan 4 ...
0
votes
5answers
71 views

Rsync to a backup server resulted in additional space taken

I ran an rsync to backup one of our production servers. I put the production server in readonly mode so that no additional data could be added or modified. I then did a recursive rsync with archive ...
2
votes
0answers
133 views

Trying to script rsync using pam_exec

I'm trying to write a bash script that will execute rsync when called by pam_exec. I've tried a couple different ways, and I'm not sure what I'm doing wrong. When I try to run the script at login by ...