rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.
2
votes
2answers
147 views
Want to rsync some files after they've been sedded
I would like to rsync some HTML files to a webserver that are in production form. To get them in production form I have to trivially insert a ".production" string in a script tag. I can do this with ...
2
votes
1answer
5k views
“rsync: failed to set permissions on …” error with rsync -a or -p option
When I use the -a option as is asked and answered in Preserve the permissions with rsync, I got a lot of "rsync: failed to set permissions on" errors.
rsync: failed to set permissions on ...
2
votes
2answers
38 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 ...
2
votes
1answer
114 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 ...
2
votes
1answer
80 views
rsync: how to relocate absolute symlinks?
I've pored over the rsync manpage as well as on several related questions here on serverfault. I've played with -R and -L and -l options, but no luck.
Here is the question: when sending a dir from ...
2
votes
2answers
136 views
Suppress server message in rsync
When I rsync or scp from a particular server I get a rather long message telling me the rules of the server. However when I setup regular pulls, I'd like to be able to suppress those messages in my ...
2
votes
1answer
140 views
How to rsync to different directory?
Here is what I want to achieve:
Run Rsync to compare two directories recursively like this:
rsync -r /source /target
but don't actually rsync between the directories. I want the resulting ...
2
votes
1answer
2k views
How to force rsync to overwrite read-only archive files?
I'm using rsync to copy some source code. The copied code must not be modified at the destination place by my mistake while code editing. So I set --chmod=u-w flag to make it read-only after copying.
...
2
votes
2answers
416 views
Backup a Windows PC to a Linux Machine
What is a good backup strategy to backup a Windows 7 box to a Ubuntu box that are on the same network?
The solution I am thinking would be to mount a Windows folder to Ubutnu then use rsync. But I'm ...
2
votes
1answer
190 views
Grant permissions using rysnc
I want to use rsync (as a user) from "me" on a local computer to "another" user on a distant computer. However, I also want "another" user (on the distant computer) to own the files and to be able to ...
2
votes
1answer
113 views
problem with rsync. forgot the ending dot and can't find beackupfiles now
I am new with linux and tried to backu my files doing this:
rsync -arvu /home /etc /opt /var
I was in the desired directory (on an external hard-disk drive) and logged in as su.
but no files where ...
2
votes
1answer
248 views
Why does this exclude pattern for rsync give different results when the source directory has a trailing slash?
When I do something like
rsync -a --exclude=/e/garbage /e /dest
the exclusion works, but with
rsync -a --exclude=/e/garbage /e/ /dest/e
it doesn't. I'm using version 3.0.7 protocol version 30 ...
2
votes
2answers
459 views
rsync via ssh from linux to windows sbs 2003 protocol mismatch
I am trying to backup my linux webserver to our local windows sbs 2003 server in the office. I have set up ssh and cwrsync on the windows server and have confirmed that the linux server can reach the ...
2
votes
1answer
33 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
2answers
25 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='*' ...
2
votes
1answer
152 views
Unison can't synchronize Dropbox configuration (socket files)
I'm using Unison to synchronize my home across several computers, and I've addressed everything but this.
The Dropbox configuration is partially skipped, and as a result Dropbox thinks there is no ...
2
votes
1answer
690 views
rsync compare directories?
Is it possible to compare two directories with rsync and only print the differences? There's a dry-run option, but when I increase verbosity to a certain level, every file compared is shown.
ls -alR ...
2
votes
1answer
176 views
rsync server and client issue
I am new to rsync server so please bear with me.
I just configured an rsync server that is hosting the files I would like to replicate to a remote machine. Here is the rsyncd.conf file:
max ...
2
votes
1answer
339 views
Rsyncing multiple files with white spaces in the names
I'm trying to back up files onto a server, but I'm having problems with files that have white spaces in the names.
I'm using this command in terminal:
FILES="testing/space\ in\ filename testing/and\ ...
2
votes
1answer
1k views
What is the interaction of the rsync --size-only and --sparse options?
If I use rsync with the --size-only and --sparse options together, if a file already exists at the destination as a full file (otherwise the same) it's not overwritten.
If I omit the --size-only ...
2
votes
2answers
238 views
How to update a content management installation by overwriting existing files via ssh and shell?
I have installed a cms (modx) on a webserver running CentOS 5 and Apache 2.2. Now there is a new version and I would like to update it. The instructions in the modx-wiki suggest to overwrite the ...
2
votes
1answer
271 views
rsync an mpd playlist
An mpd playlist looks like this:
syncrel.m3u
Bob Dylan - The Times They Are A-Changin' [V0]/04. One Too Many Mornings.mp3
Bob Dylan - The Times They Are A-Changin' [V0]/01. The Times They Are ...
2
votes
1answer
555 views
sbopkg is not working with proxy
Sbopkg used to work on my computer untill the network admin started to make a compulsory for the user to use proxy before connecting to the Internet. So, when I tried to sync to slackbuilds, I'm ...
2
votes
0answers
119 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 ...
2
votes
3answers
413 views
rsync list of files in sub-directories to remote server and delete extraneous
I haven't been able to find the answer to this one. I have tried all kinds of combinations of --include, --exclude, -r, --delete-excluded, and source directory.
This is what I'm trying to accomplish:
...
2
votes
3answers
346 views
rsync and write permissions at the target
I always wondered why rsync tries to transfer a file to a remote location where it has read/execute permissions for the target dir, but no write permissions to create the actual destination file. This ...
2
votes
3answers
389 views
Copy/backup all dirs containing files matching a regexp
I would like to do a backup where I recursively go through a dir structure and only get directories with files whose names matching a particular regexp. I would like to keep the directory structure, ...
1
vote
2answers
177 views
Synchronize the files from One folder of a Server to other
I need a script in which Files of One server will be copied to other folder of another server ONLY AND ONLY IF the file on SOURCE SERVER file doesn't exist on DESTINATION SERVER.
Further Detail
...
1
vote
2answers
921 views
How to copy large files over the network
I need to copy large files over the network, but I am not sure about the command line to use for it. I have been using rsync, but I feel maybe I could zip the files first? I am a Unix beginner, so ...
1
vote
1answer
151 views
how to download linux kernel using rsync
I tried git clone, but it's too slow, how to do it with rsync? is it faster?
If I do rsync rsync://rsync.kernel.org/pub/
it just shows:
drwxr-sr-x 4096 2011/11/16 04:40:02 kernel
1
vote
2answers
491 views
creating a device image for a network location
I have a dedicated ubuntu server with hetzner.de. hetzner also provides a seperate backup space accessible via samba/ftp/sftp/scp.
In their support document about backups, the following line is ...
1
vote
2answers
560 views
Comparing two directories in different servers
We copy our production code and data files to a testing server on a weekly basis.
It can take hours, and sometimes it hasn't finished.
What is the best method to confirm that the directories have ...
1
vote
1answer
1k views
Preserve the permissions with rsync
Let's say I have a file a.txt in LINUX with permission of 0664.
When I use rsync to copy the file to my Mac with rsync -r -t -v LINUX MAC, the file's permission becomes 0644.
How can I keep the ...
1
vote
1answer
1k views
Cron: My crontabs don't seem to be doing anything at all
I think I'm missing something. I've set up some crontabs to handle rsyncs over ssh in my office to handle some backups, but they don't seem to be running OR logging, for that matter. Am I missing ...
1
vote
2answers
75 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 ...
1
vote
1answer
321 views
rsync command to backup home tree to another disk
I want to make sure I am using the correct rsync command on Linux. I do not want to run an rsync and end up losing data as I am new to Linux and I have no backup now.
On Linux Mint, I want to backup ...
1
vote
1answer
468 views
Adjusting rsync TCP timeout
I'm using rsync in my own C++ program by issueing the command system("rsync -rauzvq root@host:/folder");
I use this for keeping multiple systems in sync.
Now I have the problem that when a remote ...
1
vote
2answers
332 views
rsync: how to include files with name ending in a specific string [duplicate]
Possible Duplicate:
Rsync filter: copying one pattern only
I would like to use rsync to transfer all files from a server (or server-via-ssh) which have a specific ending string, such as a ...
1
vote
1answer
273 views
rsync error: Time value of file truncated on receiver
I run the following rsync command to back up my data. I am on Ubuntu 12.04.
rsync -rt --delete --links --exclude-from '/home/john/rsync-exclude.txt' /media/data/ server:/backup/data
The data ...
1
vote
1answer
513 views
Trying to create a cron to Rsync then tar the folder
I'm stuck at the first hurdle!
I want to run a couple of commands from a bash script. First something like this to rsync some directories:
rsync -e ssh -az user-whatever@website.com:/home ...
1
vote
3answers
435 views
Decreasing hard drive sync time with Unison
I'm using Unison to synchronize my music collection to a few different sources, namely a couple computers over SSH and a hard drive.
One thing I've noticed is that SSH updates are incredibly fast in ...
1
vote
1answer
3k views
Real Time Local File Sync
How can I set up an instant file sync for two local directories? The catch is I need it in real time (15, 10 or even 5 seconds is too slow), and I don't want the target root directory created.
For ...
1
vote
1answer
34 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?
1
vote
1answer
38 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
1answer
89 views
rsync all directories that start with a specific digit
I have directory loaded with thousands of sub directories:
/home/tmp/
1
12
123
1234
2345
234
3456
345
34
...
1
vote
1answer
213 views
rsync to SFTP while moving completed uploads to another folder
I'm going to be moving a lot of data (30GB) to a server which is split up into multiple 200MB tar.gz files. This is going to take time, and I'm going to need to stop and start my computer again during ...
1
vote
1answer
136 views
rsync hardlink attempt copies
I've tried setting up a script to hardlink my files to my box.com account (as it's a backup of my music library). As I want to run it automatically to sync my music across several devices, I wanted to ...
1
vote
1answer
315 views
How should I check to see if the remote smb serv is mounted?
I'm pretty new to mount. Basically, I have a remote SMB serv on the local network that I want copy images from a directory on, then repeat every 5 min.
I think what I need to do is make a script that ...
1
vote
1answer
446 views
IO Error in rsync while doing everyday backup
I have a sample NAS server (QNAP TS-210), with very limited Linux on-board (although a bit reinforced with Optware/IPKG). I'm a Linux newbie. After digging through Internet I was able to write my own ...
1
vote
1answer
315 views
Synchronize directory tree with deduplication?
I have two Linux servers that have a large amount of data (1TB+) that need to be synchronized over a slow connection (100 KB/s).
A lot of the data overlaps, but are in different locations.
I would ...
