rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.
1
vote
1answer
29 views
Rsync for disaster recovery
Recently I backed up an installation of over 10GB of data using the below syntax:
$ rsync -tvroglHpE /source/path/ user@remote_server:/destination/path/ 2>&1 > ~/rsync.log;
# Where
...
1
vote
1answer
29 views
Non-persistent differencing file
I have a large file (5-10 GB) and want to access this file in a special file system with the following conditions/features:
There is a single process that reads and write on the file.
When the ...
0
votes
1answer
10 views
rsync remote to local automatic backup
Because all my work is stored on a remote server I would like to auto backup my server monthly and weekly. My server is running Centos 5.5 and while searching the web I'm found a tool named rsync. I ...
1
vote
3answers
24 views
rsync only subdirectories and content
I have a directory that contains a number of files and subdirectories. See below:
baseDir
bad1
bad2
subDir1
file1
subDir2
file1
I would like to rsync the contents of baseDir without ...
3
votes
1answer
41 views
How do I backup a non-empty directory and preserve metadata like permissions/user-group ownership/time file was modified?
I used rsync for creating a backup copy:
bash-3.2$ rsync -tvrog /export/home/kent/Scripts /export/home/kent/TEST_Scripts_rsync
With these options:
Options:
-v, --verbose ...
0
votes
0answers
51 views
force rsync to overwrite files at destination even if they're newer
I have an rsync backup script I run, which also restores files back where they came from when I ask. But if the files at the destination are newer than those in the backup when I try to restore, it ...
5
votes
2answers
112 views
Why does my rsync not allow block-size>128K?
Running rsync with a large* --block-size like this:
rsync -avvz --rsh 'ssh -c arcfour' --block-size 1048576 --inplace --progress example.com:/big.file /big.file
I get the following error:
Invalid ...
0
votes
0answers
38 views
How to setup a rsync server and client?
I have worked on rsync for the whole afternoon.
I have set a rsync server,but I don't know how to use it.
I have two machines:66 and 12.
66 is the server,I want to back 66's data to 12,so I use ...
3
votes
2answers
78 views
rsync mkstemp failed Invalid argument (22) with davfs mount of Box.com cloud
I mounted Box.com cloud storage using davfs according to these instructions. I mounted my Box.com account under /home/me/Cloud/Box
I can access the mounted filesystem via Dolphin as well as via the ...
0
votes
1answer
33 views
rsync exclude based on file size?
Is it possible to exclude files in rsync over a certain size (e.g. over 250 MB)?
And what if I also want to exclude hidden files?
How would I exclude all hidden files or directories (those that ...
3
votes
1answer
104 views
Move files and delete directories with rsync?
Recently I needed to delete a large number of files (over 1 million) and I read that doing:
rsync -av --delete `mktemp -d`/ ~/source && rmdir ~/source
Was one of the most optimized ways to ...
1
vote
1answer
59 views
Rsync over Rsync via cronjob
I have a local server which Rsync's from some computers on the LAN.
It's a part of a backup solution.
This Rsync runs via cronjob twice a day.
Occationally people add gigantic amounts of data, like a ...
0
votes
2answers
25 views
Rsync after copy
Does Rsync after copy only send the differences between the folders, or does it copy the entire folder again since Rsync has never been implemented before on that folder?
0
votes
1answer
40 views
Simple VCS — what should I use (git?) [closed]
I am developing relatively simple tools (R packages) on my laptop and on my workstation. Usually, I sync them with rsync, so the repos are essentially identical, but I would like to have a tool to ...
0
votes
1answer
29 views
Bash scripting rsync puzzler
Frustrating. The script below work for the first two targets, but not the second.
#!bin/bash
...
backitup () {
Todaysdate=`date "+%Y-%m-%dT%H_%M_%S"`
Sourcedir=$1
Destination=$2
Username=$(echo ...
5
votes
4answers
120 views
rsync, delete files on receiving side that were deleted on sending side. (But don't delete everything)
I'd like to use rsync to...
delete files on the receiving side that were also deleted on the sending side
not delete other files that are in the rsynced directory on the receiving side
For ...
2
votes
1answer
55 views
`mv` has failed because of insufficient disk space, what now?
I have tried to move a folder A from partition a to partition b as folder B with mv. Now the target file system was not big enough for all the data (I know I should have checked this first).
Anyway, ...
2
votes
2answers
141 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 ...
3
votes
1answer
73 views
Bash remote autocompletion : change the 'starting' directory
I'm regularly downloading files from a remote server, always from the same directory. So I wrote a custom function that I put in my bashrc:
download_from_myserver () {
for file in "$@"
do
...
2
votes
1answer
55 views
ssh/scp works but rsync just constantly says “no”
Hi I have a windows 2003 server that I need to back up onto a linux client so I install cygwin on the Win2k3. On the Win2k3 I have enabled ssh, scp but (because the Win2k3 server uses an customised ...
2
votes
3answers
52 views
Get files on remote copy but not local
I have a folder.
I have one copy of this folder locally and one on a server. I edited my local folder as I wanted and then rsync it to the server.
Is there any way of comparing those two copies, ...
1
vote
1answer
40 views
Getting back rsync's deleted files [duplicate]
I accidentally rsync-ed to a server using the delete attribute when I shouldn't have.
Is there any chance of getting the data on the server that rsync removed.. back?
2
votes
2answers
50 views
How do I rsync only some files in some directories
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='*' ...
4
votes
2answers
61 views
Two-way rsync results in oscillating content
I am trying to sync content between two servers. The servers are identical builds (Ubuntu 12.04LTS) and have this cron job running to sync the content:
rsync -arzc --update --delete ...
7
votes
3answers
346 views
Why does rsync fail to copy files from /sys in Linux?
I have a bash script which uses rsync to backup files in Archlinux. I noticed that rsync failed to copy a file from /sys, while cp worked just fine:
# rsync /sys/class/net/enp3s1/address /tmp
...
1
vote
1answer
50 views
Why does rsync look for DSA instead of RSA key when run from cron job?
I want to backup files from a server to my local computer using rsync. I can only log-in to the server with an RSA ssh key.
I have stored the passphrase to the key in Seahorse Passwords and Keys, ...
1
vote
2answers
699 views
rsync error: some files/attrs were not transferred
I'm trying to move my emails Maildir from an old centos server to a new debian server.
rsync -avz /home/me/Maildir ssh root@ipaddress:/var/vmail/me/Maildir
I tried to copy an 8gb account, didn't ...
0
votes
0answers
53 views
Rsync seems to back up files that haven't been opened or changed
I have started using rsync to back some data on my mac to an external HD. It works really well, but I have noticed something odd. Every time I run the command, I get a list of files that haven't been ...
2
votes
1answer
341 views
rsync: failed to set permissions on “/path/to/file.txt”: Operation not permitted (1)
I encountered the error when attempting to transfer source files from a remote Linux web server to a local HP dt1000i Desktop Hard Drive connected to an Ubuntu 12.10 box via USB.
A Samba share is ...
-1
votes
1answer
126 views
rsync: failed to connect to host: Connection timed out (110) [closed]
I am not able to list drectories through rsync:
from Host2:
user@host2#sudo rsync user@host1::share
rsync: failed to connect to host1: Connection timed out (110)
rsync error: error in socket IO ...
1
vote
1answer
250 views
rsync: error starting client-server protocol
I have rsyncd running on both the systems . When I am trying to check the connection it giving me following error:
From host2:
user@host2#rsync username@host1::share
password: [password]
...
1
vote
0answers
104 views
Rsync daemon intrepreting parameters as command in rsync.conf
I meshed up with my rsync on linux. When I am restating it, its showing me following error:
sudo /etc/init.d/rsync restart
/etc/rsyncd.conf: line 13: [ftp]: command not found
/etc/rsyncd.conf: line ...
3
votes
2answers
149 views
Rsyncing files with special characters to USB FAT32
I want to copy a large number of files to a USB drive that is formatted FAT32 (and cannot be formatted anything else, unfortunately).
Many of these files have names with characters such as : and ? ...
2
votes
2answers
123 views
`cp -al` snapshot whose hard links get directed to a new file when edited
I am trying to take snapshots of a massive folder regularly.
I have read here: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental
that cp -al takes a snapshot of a folder by simply ...
1
vote
1answer
59 views
backup / on ntfs filesystem encrypted
I was about to backup my archlinux, following this guide to my FritzBox, (which enforces a NTFS system that I mounted via samba) as I remembered, that NTFS is not capable to keep permissions and other ...
2
votes
1answer
117 views
rsync and backup and changing timezone
I back up my pictures from my camera using rsync, using:
rsync -vzrtl --progress --stats --timeout=0 host destination
Now I was in a different timezone when I did my first backup then I moved to a ...
0
votes
0answers
19 views
Using rsync without adding ssh user [duplicate]
How to give an user access to rsync (as www-data user), without giving him an ssh user (because i afraid that he could do something with my computer), how can i do this?
1
vote
2answers
106 views
Cancel and resume a duplicity backup
Is there a way to cancel duplicity (running over rsync and symmetric gpg encryption) without messing up the running backup and resume it later (for example after rebooting the laptop) without ...
0
votes
3answers
119 views
rsync timed out
I need to sync a directory to a directory on a remote server.
at the moment i use rsync -ca to do this but the directory is quite large and the whole process fails with a timeout error.
Now i'm ...
3
votes
1answer
189 views
How to see the total progress while copying the files
We know that if we give --progress parameter to rsync it will show the progress of files copied. But issue is that is shows the progress for each single file not total or overall progress.
So how to ...
0
votes
0answers
46 views
rsync a mac on linux box, --delete not working
I have a mac Darwin Kernel Version 10.8.0. One of its folders is called source. I want to back it up on a remote linux folder called destination.
My problem: whatever I try, I cannot make the rsync ...
0
votes
1answer
56 views
Rsync adding a “?” at the beginning of directories
I currently have many of these commands running in a .sh file that looks like this:
rsync -avz -e ssh --rsh='ssh -p1337' --bwlimit=10000 root@DestinationIP:/home/backup /home/localbackup
rsync -avz ...
3
votes
1answer
261 views
Having an rsync job complete after closing SSH connection
I am transferring a large amount of files from one computer to another using rsync. I am doing this by SSHing into the source computer and executing a command like this:
sudo rsync ssh ...
2
votes
0answers
160 views
Rsync --bwlimit not working
I am currently using rsync to transfert large file from a host to another.
I would like to limit the debit for this transfert. After reading the man page I found the option --bwlimit which is ...
1
vote
0answers
71 views
BackupPC can't finish backup
I'm trying to backup /etc/ directory on CentOS 5.2 using BackupPC.
It takes several hours and then aborted by signal ALRM.
There is a partial backup created with all data from /etc
But BackupPC thinks ...
2
votes
1answer
557 views
How to rsync only new files
I am trying to set up rsync to syncronize my main web server to the remote server by adding newly generated file to the later.
Here is the command that I use:
rsync -avh --update -e "ssh -i ...
0
votes
2answers
96 views
How to detect particular system call called or not in a whole workflow?
EDIT No. 1
My task is mirroring , i.e., copying updated data from master server to all mirrors, by using rsync and rsh. But during rsync and rsh, I found some delay. My thinking is , the reason for ...
0
votes
2answers
306 views
Synchronizing same files with different filenames using rsync [duplicate]
I have a directory ~/music that contains all my music files and a directory /media/backup/music that I wish to synchronize with the first one using rsync. Initially, I did a rsync -a ~/music ...
0
votes
1answer
93 views
rsync is changing my directory permissions
I have an rsync setup that transfers files from my local development machine to my production web server. On the production server, the storage directory needs to be 775.
When the rsync completes, it ...
3
votes
4answers
153 views
Most Efficient way to back up/sync large directories over SSH
I'm looking to back up some large directories on a Dedicated Server to another Server on a daily basis using minimal bandwidth
RSync looks like its up to the task but I'm unsure of the best command ...