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

0
votes
2answers
104 views

rsync apparently breaks hard links

On the source server (A), I got a file /opt/resources/xxx and a hard link /etc/apache2/sites-available/xxx pointing to this file. On another server (B) I got the same structure ...
0
votes
2answers
114 views

What is your approach on sync two linux server in AWS

I have the following: Linux Apache Server A = /var/www/webroot Linux Apache Server B = /var/www/webroot How do you sync the two webroot Server A -> Server B in just one direction? If you are using ...
1
vote
1answer
170 views

Controlling rsync bandwidth usage by percentage of available bandwidth, in userspace?

I often use rsync on a OSX-based laptop to synchronise some files from it to a Linux server. The laptop can be connected to different networks with greatly varying bandwidths (office ethernet, wifi, ...
0
votes
0answers
176 views

backup-rsnapshot / rsync filling backup dir up to double the size of the original drive

I am using backup-rsnapshot to backup a debian system creating incremental backups with rsync. Basically, what is happening is that the backup drive gets filled up until it is completely full and the ...
0
votes
1answer
62 views

Moving linux server to another hoster

I have a task to move linux server from 1 dedicated server to another. In general my plan following: night time - turn off httpd and mysql. RSYNC via SSH. day time - turn on http and mysql. night ...
0
votes
2answers
106 views

Verify that rsync copied everything it was supposed to?

I'm trying to use rsync to back up a remote Linux server I'm running DeltaCopy as a server on my desktop PC (Win7/64), and running rsync by SSH'ing to the Linux box, sudo'ing to root, and doing ...
-5
votes
2answers
242 views

Backup Centos Server on Personal Windows 7 Computer [closed]

Using rsync or with a similar method, I would like to backup my dedicated Centos server (client websites specifically) on my personal Windows 7 computer every week. Is there an application (paid or ...
0
votes
2answers
495 views

RSync files or Map Network Drive in Windows Server?

I have to create a backup plan, from my machine .155 to .156. In .155 my files are in C:/MySQLServer/backup and should be copied daily to .156 at I:/MySQLServer/backup, so I was looking over the ...
0
votes
1answer
61 views

Disk Writes to Mounted EBS Volume Not Logged in Monitor

I have an EBS volume specifically dedicated to storing remote backups via rsync. This volume is attached and mounted to an EC2 instance. The user mediating backups has access to this volume via a ...
2
votes
1answer
548 views

rsync certain files, excluding the rest, ignoring .svn/ directory, recursively

I'm using rsync to copy some files from a share to another. Recursively, I need to: Delete files at destination that were removed from the origin Only sync php and js files Exclude every other file ...
1
vote
2answers
2k views

rsync as root to /var/www failing with “protocol version mismatch”

I'm trying to set up a one command way to move website code from a dev machine up into my Ubuntu EC2 instance and have it be copied straight into the /var/www/mywebsite folder where nginx expects to ...
3
votes
3answers
523 views

What is the best way to copy 9TB of data to multiple external drives, sequentially?

The data is currently stored in a 9TB RAID array, with many users having many files and directories. We'd like to back it up to five 2TB external hard drives, but since we only have one free USB port, ...
2
votes
1answer
79 views

Limited SSH access for log retrieval

I want to have limited access to a Linux server to be able to grab a certain set of logs. Ideally, I would like to be able to run rsync locally to grab the logs from the server and for security ...
0
votes
2answers
212 views

Using rsync to copy files from one server to another, pertaining users and permissions

I'm backing up user uploaded files from my primary server to my failover server using rsync. If I use rsync -a to mirror an /uploads directory from server A to server B, can I expect programs using ...
-1
votes
2answers
677 views

Rsync - Outputting an incremental backup result to a different folder? [closed]

I am a beginner with the Unix system so please bear with me if this sounds noobish. The most common way to use rsync to do an incremental backup is to do it like this rsync -av --delete ...
7
votes
3answers
4k views

compare 2 directories and copy differences in a 3rd directory

Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
4
votes
2answers
592 views

rsync not removing single quotes around array of strings --filter list

Trying to safely retrieve files from heavily infected Windows XP and 2003 machines that came to us from an acquisition. I have a similar need for automating a script that would run on PXE booted ...
0
votes
1answer
96 views

How to rsync symlinks and their referents but preserving the links

I have the following filestructure in my src directory: en/ en/a/ en/a/file1 -> ../../en/mp3/file1-longer-name-a en/a/file2 -> ../../en/mp3/file2-longer-name-a en/mp3/file1-longer-name-a ...
1
vote
1answer
126 views

Multiple spaces in folders and files for rsync backup via /bin/bash /bin/sh

Need a one-time backup of two old messy Windows XP machines because of a company split. Using CentOS 6 x64 minimal install, i mounted some MS Windows NTFS harddrives installed locally via ntfs3g and ...
2
votes
2answers
629 views

How to setup a public rsync and sftp server

I want to setup a public storage server which allows sftp and rsync (through ssh). I've got it working with a chroot jail and rssh. When the user connects to the server with sftp he can read all the ...
0
votes
0answers
158 views

Performing an rsync before initial rdiff-backup

I want to set up standard rdiff-backup to remote server. However the data is very big for the capacity of internet connection, so I have transferred them on physical media. Than I synchronized the ...
1
vote
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 ...
0
votes
1answer
70 views

Mac server architecture and synchronization

I'm currently for an reliable and robust solution to make a bidirectional synchronization for the file between two mac os x server (recent versions). The folder is a corporate architecture of ...
1
vote
1answer
298 views

How to rsync to a server using ssh keys

I'm running on a Mac, and I want to set up a crontab to rsync from my VPS on a weekly basis to grab some backup archives. I'm using ssh keys (no passwords allowed on the VPS), and normally I can ssh ...
1
vote
1answer
118 views

Can ZFS resilvering be used effectively for backing up to an external drive?

Suppose I currently use rsync to back up an internal drive periodically to an external drive. The external drive is usually stored offsite but is periodically brought over and plugged in via USB and ...
2
votes
2answers
582 views

How do I write an rsync exclude for a directory tree with names containing spaces?

I'm trying to exclude a directory tree as part of an rsync command embedded in a bash script approximately like this: $OPTIONS="-rl --exclude 'Some Parent Directory/Another Directory'" rsync ...
1
vote
2answers
162 views

rsync --exclude not excluding

I'm using rsync on an Ubuntu 12.04 LTS server with the following script to back up all of /, however, whenever I run the script (as root), the directory /backup is included, when it should be ...
0
votes
1answer
224 views

Postfix IMAP/POP3 migration with UIDL preservation

I have two Centos servers: The old one (server1) with Postfix and Courier as mail service, using roundcube and atmail (free) for IMAP webclient and POP3 for desktop clients too. The new one ...
-1
votes
1answer
501 views

Get Rsync status for output

At the end of a successful rsync job, I get the typical: sent 6022622 bytes received 4751961 bytes 69738.40 bytes/sec total size is 3328464484 speedup is 308.92 I call my rsync job via a shell ...
1
vote
2answers
45 views

Rsync Include and Exclude with Dates

I have a bunch of log files that I sync with another server using rsync. The log files are all named in the format YYYY-MM-DD XXX.txt. I only want to sync the current month and last month of logs ...
0
votes
1answer
185 views

Date variables within rsync filters?

I have an rsync script that syncs logs files from a remote server. The log files are always named YYYY-MM-DD-HH-MM-SS. At the moment, I have a filter in place to only get the current year's logs: ...
0
votes
1answer
99 views

rsync from local harddisk on a Windows terminal server to a linux server [closed]

I have to live with a rather complicated setup, which I can't change. It's like so: Objective: rsync files from a USB drive on network1 to a linux server on network2 where the only connection between ...
0
votes
2answers
3k views

How to tell rsync do not check permissions

I have two directories with same PHP application in every of them. I want to execute rsync -rvz from one, source directory to another, destination, so rsync will copy changed files only. Problem is ...
-1
votes
1answer
197 views

How to skip files with read error in it when copying with rsync on Linux?

I'm copying files from my sda to my sdb. sda have read errors on it, which means that when a files is written on a read error block, reading this file provokes several read error which freeze the ...
-3
votes
3answers
753 views

rsync files newer than last rysnc run

I'm trying to get rsync just to sync files that have changed and or been created since it's last run. This is an attempt to stop my NAS servers disks from spinning up every time rsync runs even when ...
-1
votes
2answers
135 views

Deploying files to a remote server: what's like rsync with extra options? [closed]

Devops question from a web developer alert :) I want to copy all locally modified files over to a remote server. Now I know I can use rsync, something like: rsync -cavzu / ...
0
votes
1answer
709 views

rsync over ssh fails as cronjob works on shell - NAS4Free

This is my rsync.sh in the home directory of my backup user $ cat rsync.sh #!/bin/sh rsync -avvvz --stats --log-file="/var/log/rsync_client.log" -e "ssh -i /mnt/stor0/backup/backup-rsync-key" ...
0
votes
1answer
289 views

Kernel panic during rsync

I am running OEL 6.4 (a RHEL clone), and rsyncing large files over ssh nightly. During the rsync, I regularly (most nights) get a kernel panic: Message from syslogd@cheshire at Mar 24 00:39:01 ... ...
0
votes
1answer
98 views

Rsync a directory from a local server to a remote server without losing permissions

I need to transfer a directory from my local server to a remote server on the exact same place on the remote server. In the directory, there are a lot of different users involved and I want to ...
0
votes
1answer
574 views

Count how many rsync process are running on unix machine

I am using Unix machine $ uname -a SunOS machine-name 5.10 Generic_127112-11 i86pc i386 i86pc How would I get the number of rsync process running on my unix box. I tried $ ps -ef | grep rsync ...
-2
votes
1answer
342 views

Does rsync migrate mail servers? [closed]

imapsync gives errors, here's my previous post. So is it possible to migrate mail servers (dovecot to dovecot) using rsync? If not, then how to migrate mail servers? Is there any tools other than ...
5
votes
4answers
2k views

Handling renamed files or directories in rsync

I am working on an rsync script for directory replication. I have it syncing only new and modified files or directories but am not liking the fact that its copying renamed files or directories as a ...
1
vote
1answer
171 views

Rsync Backup from XFS to ZFS

I currently have a backup solution in place that uses rsync to backup all out Linux servers from remote sites, to an XFS drive in our HQ. I am now trying to rsync the folder from the XFS drive in our ...
1
vote
1answer
95 views

How do I run a shell script only any files are modified in a folder?

I need to replicate a folder over a very slow link to several destinations. Currently I create a text file with find. find "$sourcedir" -exec ls -la {} \; > "$statefile" I then compare it to a ...
0
votes
1answer
112 views

Space requirements when running rsync

I have two partitions, /disk1 and /disk2, each with 100GB of space, and both of them are 45% full now. I want to rsync /disk1 to /disk2/backup/, is it safe to use rsync for this purpose? rsync -avc ...
1
vote
1answer
637 views

automysqlbackup then rsync

I'm trying to configure an automatic MySQL backup solution under an Ubuntu server. I have chosen automysqlbackup and rsync for this purpose (does it seem to be a good choice ?) rsync will be used in ...
0
votes
2answers
100 views

About rsync server and client [closed]

after reading some documentation, I still don't get it (though it seems some just use it wrong): What's the purpose of rsync server and why not using the client only? Most seem to use rsync via ssh, ...
2
votes
1answer
371 views

Using rsync to copy from HFS+ to HFS+ on Linux

I have a small linux server. I have data on several HFS+ drives that I'd like to consolidate to another HFS+ drive. The drives will be connected to the server via a USB HDD dock. I'm running Ubuntu ...
2
votes
2answers
407 views

rsync not deleting folders

I have a problem rsyncing my folders. In my home there is folder named "workspace". Recently I changed its content a lot, creating new directories, deleting old ones. New folders were successfully ...
0
votes
2answers
146 views

xargs remove file name containing $

I am using xargs to remove files from remote server. xargs -a /var/log/del.log -i -exec ssh root@abc.com 'rm -rf "{}"' del.log contains path of the files which are deleted on local server and I ...