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
0
votes
1answer
26 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 ...
1
vote
1answer
28 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 ...
0
votes
2answers
51 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
150 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, ...
1
vote
1answer
59 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
28 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
24 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 ...
5
votes
3answers
157 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
103 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 ...
1
vote
0answers
17 views
How do I rsync only some files in some directories [migrated]
I'm trying to sync all *.jpg files from /var/www/data/models/days/ + some other directories from /var/www/data root.
I do:
rsync -az --delete --include='/models' --include='*.jpg' --exclude='*' ...
0
votes
1answer
30 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
34 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
136 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 ...
-2
votes
0answers
26 views
run rsync with php exec command? [closed]
I have two Linux servers. There is a folder called 'script' in /var/www folder on server1. There is also a same named folder in /var/www on the second server. I want to sync 'script' folder on server1 ...
0
votes
0answers
23 views
How to make rsync copy symlinks to files, but leave symlinks to dirs as links?
I'm doing some system maintainence work that requires things like this. Putting simply, I want symlinks to files to be replaced with the files they point to, but symlinks to dirs left as links.
How ...
0
votes
0answers
21 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
2answers
38 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
53 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 ...
0
votes
1answer
29 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
44 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 ...
1
vote
1answer
57 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
45 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
0answers
31 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 ...
0
votes
0answers
24 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
16 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
20 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
34 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 ...
-1
votes
2answers
53 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
54 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
96 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
54 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 / ...
-1
votes
3answers
101 views
rsync large directory - building file list takes > 8 hours [closed]
I want to use rsync to move my 512GB Mac OS X TimeMachine backup from one USB disk to another.
I'm trying running rsync -aPEv source destination to do so.
The problem is that I'm running this on ...
0
votes
1answer
131 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
57 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
43 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
41 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
...
0
votes
0answers
53 views
rsync script to rewrite suffix - BASH, awk, sed, perl?
trying to write up a script to put the suffix back.
heres what I have but can't get it to do anything :(
would like it to be name.date.suffix
rsync -zrlpoDtub --suffix=".`date +%Y%m%d%k%M%S`.~" ...
-2
votes
1answer
81 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 ...
1
vote
3answers
68 views
rsync - handling renamed files or directories
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 ...
0
votes
0answers
13 views
Tell rsync to use an additional file as source for blocks
I have a partially copied version of a file. I also have an old version of the same file which could probably supply many unchanged blocks. Can I tell rsync to use that file as an additional source ...
1
vote
1answer
58 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
33 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
0answers
50 views
What is the correct way to use rsync with --link-dest on sub-folders
I have a big hierarchy of files. Sometimes hardlinks are created within that hierarchy and I know exactly in what folders that happened. I want to replicate the changes with rsync efficiently, by only ...
0
votes
1answer
62 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
115 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
56 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
76 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
91 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
81 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 ...
3
votes
1answer
123 views
How to prevent rsync (using ssh as remote shell) from facing a password prompt
I would like to run rsync without the need to enter a password. I understand I can do this using ssh keys and once the right key has been copied over to the remote server rsync logs in fine without ...


