Rsync is an open source command line tool for Unix and Windows systems that provides fast incremental file transfer to copy files and synchronize directories locally or between remote hosts. It is widely used for mirroring and backup.

learn more… | top users | synonyms

6
votes
1answer
5k views

rsync files newer than 1 week

I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B. Thanks for you help.
4
votes
2answers
1k views

rsync over SSH with cron in osx-environment

I want to automatically download files and folders from a Linux server to which I have an SSH (and FTP) account. The files shall be downloaded on a regular basis (I suppose a cron is the right tool to ...
4
votes
2answers
3k views

rsync as a background process?

I've been using rsync to sync a bunch of files between my two servers. I set a cron job that would run rsync every minute. However, I'd prefer if I could have it run always, so that files are synced ...
37
votes
16answers
47k views

How to synchronize the home folder between multiple computers?

I have three computers at home, and would like to have the /home/ folder tree synchronized between the three. Any files/folders (except those hidden) that are modified/added/removed in one of the ...
10
votes
1answer
7k views

How can I set environment variables for a remote rsync process?

When I use rsync to copy files from one computer to another, an rsync process is started on both ends. However, on the remote end, shell initialization files are apparently not read, so I cannot set ...
11
votes
3answers
8k views

How to do rsync-like encrypted backup?

I want to save a backup of my data on a remote server, but never want the backup server to see the data unencrypted. Editing a single file and backing up should not result in everything being ...
4
votes
4answers
19k views

How to use rsync from Windows PC to remote Linux server?

How do I use the rsync command from a local Windows 7 machine to a remote Linux server? What software is needed on the Windows 7 machine to use rsync? The remote Linux server is using Amazon's Linux ...
0
votes
1answer
653 views

Drive cloning with Rsync

I would like to mirror (clone) my TV harddrive to my TVbackup harddrive daily. I don’t want to use RAID, and currently, both drives are in the same computer (this will change in the future). In order ...
3
votes
2answers
122 views

How do I compare two folders recursively and generate a list of files and folders that are different?

tl;dr and an example I'm looking for a way to compare two folders recursively and output the relative paths all files (and folders) that are different (by size or by timestamp, à la rsync). For ...
2
votes
4answers
2k views

Make rsync case insensitive

I'm rsync'ing a bunch of files between a Windows and a Linux system. Since not all Windows care about case, some of the files on the Windows system no longer have the same casing as they had on the ...
1
vote
2answers
805 views

sync local and remote directories using rsync?

I have two linux box that i would like to keep in sync. I see option -avz syncs the remote with local but new local files are not pushed. How do i do this?
12
votes
3answers
10k views

linux merge folders: rsync?

I have two copies of a folder src/ dest/ I want to merge them, doing the following: If a file is only in src, I want it to be moved to dest If a file is only in dest, I want it ignored IE left ...
16
votes
4answers
13k views

Run rsync with root permission on remote machine

I want to sync a folder from my machine with a folder on a remote machine. The remote folder can only be manipulated by root. I have an account on the remote machine which can use sudo. How can I run ...
11
votes
3answers
14k views

rsync file permissions on windows

I have an rsync service that syncs files from remote machine to a machine that drops them on a network drive. I need the copied files to take on the native permissions of the destination folder. ...
17
votes
3answers
7k views

Resume rsync over SSH after broken connection?

I have to transfer large amounts of data (>80 GB) over ssh using rsync. Everything is working fine, but the DSL connection where the backup data is sent from will drop once every 24h for up to 3 ...
6
votes
2answers
11k views

rsync: failed to set times on “<dir path>”

I am trying to rsync files from one server to another but getting this error rsync: failed to set times on "/dept/intranet/dept/atest/.": Operation not permitted (1) Can someone help me why so ...
4
votes
2answers
2k views

Stop a Mac from sleeping while a bash script is running, then allow it to sleep as normal once complete

I've got my Mac to wake up during the night and run an rsync to back it up. This is configured through Energy Saver > Schedule. However it seems that it's going back to sleep before it can get ...
4
votes
5answers
844 views

Why every OS still can't resume file transferring? [closed]

I mean, Windows 7, Ubuntu 9.10 and Snow Leopard... All newest and top of line desktop operating system still use regular copy to transfer files, as it seems to me from experience. Instead of using ...
8
votes
2answers
9k views

rsync --remove-source-files deletes source files one by one or after rsync completes?

I have an rsync command in an application that copies the contents of a folder to another machine. I have the option --remove-source-files because I'm only interested in having the files on the ...
6
votes
2answers
6k views

Rsync, two-way sync, and syncing file-deletion operations

I use rsync in the following manner: rsync -Pvaz me@192.168.*.***:Documents/ /Users/me/Documents/ rsync -Pvaz /Users/me/Documents/ me@192.168.*.***:Documents/ The problem: if I delete a file on my ...
5
votes
3answers
3k views

rsync hack to bounce files between two unconnected servers

Here's the connection: [Server1] <---> [my desktop] <---> [Server2] Server1 and server2 are not permitted to talk directly to eachother (don't ask). My desktop, however is able to ...
11
votes
3answers
3k views

Do I need to have a passphrase for my SSH RSA key?

Before I started at my current job (at a small business), my office had no firewall on the network and literally nothing was ever being backed up. Now that I've signed on as a dedicated sysadmin / ...
11
votes
1answer
10k views

How to rsync a large file, with as little CPU and bandwidth expense as possible?

I have a 500 GB file that I plan on backing up remotely. The file changes often. I'll be rsyncing it from a desktop to a server. Both can run rsync client or server. What is the proper command for ...
5
votes
5answers
3k views

Copy a large file over an unreliable link

This isn't really a question about programming, but it is a question about working as a programmer. I hope this is an appropriate forum for this question. I work from home. My Windows XP based ...
2
votes
1answer
3k views

Rsync difference between two directories to a 3rd directory

How would I go about rsyncing the difference between two directories to a 3rd directory. For example, if I have the command rsync -av --progress --stats /hdd1/ /hdd2/ I would like to copy the ...
1
vote
1answer
263 views

How can I limit the disk I/O priority for a process in Windows XP?

I have a setup where a Windows XP machine gets backed up to a server on the LAN, using rsync. Because of operational requirements, the backup needs to happen while the machine is in use. While this is ...
1
vote
1answer
306 views

rsync: divide out local files in different servers with limited space

I have 80 Gb of files in a local directory that I want to backup dividing them out in different servers with a limited space quota, using rsync, eg: LOCAL 80 Gb ====> server1: first 30 Gb ...
9
votes
2answers
4k views

Does anyone know why rsync would keep sending the files over and over again?

I'm trying to using rsync to backup some files, about half a TB. It's now it a state where it keeps sending the same files everytime it runs. for example: rsync -av /data/source/* ...
4
votes
4answers
6k views

rsync using regex to include only some files

I am trying to run rsync to copy some files recursively down a path based on their file name pattern, case insensitive. This is what I have done to run rsync: $ rsync -avvz --include ='*/' ...
3
votes
2answers
739 views

Redirect all SSH traffic through a “middleman” server

this is my setup right now: A. My NAS with static IP, reachable via SSH from the Internet (OS X) B. a VPS (Ubuntu Server) C. a dedicated server (Gentoo) My question: Due to bad peering i want to ...
3
votes
3answers
10k views

rsync Permission denied backing up a remote directory to my local machine

NOTE: I found this similar question: Run rsync with root permission on remote machine. That doesn't answer my question. The answer there doesn't provide enough explanation for me to parse my own ...
2
votes
3answers
358 views

How can this backup strategy work?

I am trying to script a very simple backup strategy. Here is the general idea. Daily - Backup the entire filesystem using rsync, overwriting the previous day's backup. Weekly - Once a week copy the ...
2
votes
1answer
4k views

Leave ACL handling to Windows with Cygwin rsync

I'm running an rsync command, copying my files from a server to my Windows machine like: rsync -rt --partial-dir=".rsync" --del rsync://server/a/ a/ Whenever this command creates a directory, it ...
1
vote
3answers
216 views

which Backup Software?

I need to use a backup software that can backup windows server to a Linux server out side the network (the cloud)! so far I came through the following: Handy Backup Professional 6.7 Backup4all ...
1
vote
5answers
1k views

What is the best way to perform daily/weekly/monthly backups?

I am currently running a script in leopard every few days to make sure I have backed up my data on a remote server using: #!/bin/bash rsync -avvz ~/Documents ~/Workspace -e ssh ...
0
votes
1answer
494 views

How can I keep a folder on two computers in sync, without uploading to the cloud?

I want to keep certain folders in sync between various computers. They are a mix of Ubuntu 12.04 and Windows 7 machines. I already know about services such as SpiderOak and Dropbox, but I want to ...
0
votes
3answers
219 views

Does rsync require 2 computers?

I am wanting to use something like rsync (i think). I am using Windows 7, I would like to be able to sync files/folder to other Disks on 1 computer, sometimes, just keep 2 folders or more in sync on ...