a utility used to sychronise files between locations (possibly over a network)

learn more… | top users | synonyms

21
votes
1answer
36k views

How to exclude a folder from rsync

I am trying to backup my home folder on my NAS drive. I am giving this: rsync -Paz --exclude-from 'rsync-exclude.txt' /home/chris/ admin@192.168.1.65:LinuxHome where rsync-exclude.txt has this ...
19
votes
3answers
44k views

How to exclude multiple directories with rsync?

I am trying to backup my home directory using rsync, and I want to exclude some of the directories that contain junk. I want to specifically exclude /home/ben/.ccache and /home/ben/build. ...
16
votes
2answers
4k views

What happens if rsnapshot / rdiff-backup gets interrupted in the middle of a transfer?

Question says it all: What happens if rsnapshot or rdiff-backup gets interrupted in the middle of a transfer? I know that rsnapshot tries to make a complete snapshot of your system in rotating ...
14
votes
2answers
4k views

Customizing Ubuntu to run from RAM only, within GRUB options

I'm interested in exactly this up, now let me explain what would like to do with this. I'm preparing to buy 32GB of RAM and already have Quad Core. My idea is to implement another option in GRUB that ...
12
votes
1answer
4k views

“rsync” from remote to local

Let say that I have 2 machines: local (centos) remote on IP: 123.123.123.123 ssh port 456 (ubuntu server) and I want to synchronize my remote folder /home/wolfy/py with my local folder ...
11
votes
4answers
1k views

Can someone explain this rsync command for me?

Can anybody tell me what this does? rsync -uva --delete /srv/bkp01 /srv/offbk2/ > ~/offbkp01.log Does it delete bkp01 and offbk2 and sends a log to offbkp01.log?
11
votes
3answers
1k views

Using tar and rsync for high availability

I have Ubuntu cloud servers running which I don't have direct access to but with ssh. I'm using 'tar' to clone or to have high availability of this server. I followed the tutorial from the link [link ...
10
votes
3answers
5k views

Should I enable root account for rsync?

How can I enable the root account? I know it is not usually recommended but I'd like to setup a non-interactive script to backup my server using rsync. I could use --rsync-path="sudo rsync" but then I ...
10
votes
3answers
34k views

Backup files with rsync: error 23

I'm trying to make a backup of my /home to transfer all data from one computer to another. I wanted to save the backup on the same computer and than transfere it to another one. For safety reasons, ...
10
votes
1answer
4k views

Will backup using rsync preserve ACLs?

I am using backuppc to backup my server. The backups are done using rsyncd. Currently, I am not using ACLs, but I am think it is good to activate it to have finer control over permissions. My ...
9
votes
4answers
6k views

rsync not working between NTFS/FAT and EXT

I have music that I play in my car, from an FAT32 USB stick. The folder which I use to put songs on is stored on my EXT4 hard drive. I add/remove/retag songs regularly and occassionally want to ...
9
votes
6answers
2k views

Clone system and auto replicate the changes

Is it possible to clone an Ubuntu system and if any changes are made to original system, those should be replicated to the one cloned? I need to have backup support if original one gets down. In my ...
8
votes
2answers
1k views

Rsync, how much risky to use it live?

I rsync my disk live, I mean I'm making a rsync backup of the machine I'm using. Is it ok, safe, wise ? or very not ? Is it risky, if I want to use this backup for restoring or cloning then ?
8
votes
4answers
2k views

How can I substitute colons when I rsync on a USB key?

I would like to backup my mail directory on a USB key. However, my IMAP has a strange naming convention that something include a colon (:) character. Since the USB is in a window format, rsync fail ...
7
votes
2answers
7k views

rsync exclude hidden files doesnt work!

I’ve searched all over the internet and everybody suggests the same thing - that adding --exclude=´.*´ should exclude hidden files and folders from an rsync. It doesn’t. I´ve also tried adding a ...
7
votes
2answers
17k views

Forceably set permissions when running rsync

Currently I am backing up gigabytes and gigabytes of data from a live server to a backup server using an rsync/ssh combination script, allowing for automated operation every night with a cron job. ...
7
votes
1answer
6k views

rsync not actually copying files

I'm trying to synchronize a large directory of files from my server to a local box. (Both are running Ubuntu.) I have a command that looks like it works, but certain files are not copied: ...
7
votes
1answer
7k views

How to rsync to android

How can I connect to my android device to rsync music (or other stuff)?
7
votes
3answers
6k views

Why is this rsync + ssh cron job giving me 'Permission denied (publickey)' errors?

I make frequent backups to a local drive which I want to sync daily to a remote server. The target server is configured for SSH key (no password) access only. Since my primary SSH key for that server ...
7
votes
1answer
2k views

How to make NFS mounts available while offline?

Problem: I work on a notebook and while at work I have access to many NFS mounted drives. When I get home they are obviously not available. Windows 7 solution: My business partner uses Windows 7 ...
6
votes
2answers
11k views

Monitor/Watch running rsync process

I have an rsync job that has been added to a crontab and when it's running, I can only check that there's a rsync PID and confirm with htop that it's eating up n amount of CPU and RAM. What I'd like ...
6
votes
1answer
2k views

How can I sync my home folder “both ways” using rsync

I would like to sync my home folder using a server with ssh, is it possible to do it with rsync? I need to be able to sync it between a few computers. Thanks for your help
6
votes
4answers
1k views

When is it appropriate to use `dump` vs `rsync`?

When is it appropriate to use dump vs rsync for backups?
6
votes
3answers
4k views

How to speed up rsync/tar of large Maildir?

I have a very large Maildir I am copying to a new machine (over 100BASE-T) with rsync. The progress is slow. VERY SLOW. Like 1 MB/s slow. I think this is because it is a lot of small files that ...
6
votes
3answers
740 views

How come rsync copies files faster than Krusader?

I am trying to copy a .tar.gz file from a remote host. If I mount that host using Krusader and copy it takes a lot of time. However, if I use rsync, it is about 5-6 times faster. How come? Is there a ...
6
votes
2answers
17k views

How to exclude files in rsync?

I'm using ubuntu server 12.04, now I want to backup some files using rsync, here is a try: rsync -aAX $HOME/Documents/* $HOME/Backups/TEST --exclude={$HOME/Documents/another/*,$HOME/Documents/temp/*} ...
6
votes
3answers
844 views

directory name with space and bash

I'd like to exclude the directories "temp" and "Ubuntu One/" from backup. What is the correct escaping of the space???? RSYNCCONF="--delete --exclude=.* --exclude=temp/" Thanks in advance! Chris ...
6
votes
3answers
3k views

Backup your home directory with rsync and skip useless folders

You can easyly backup your home folder on an external harddrive with $USER=`whoami` rsync -a --exclude=.cache --progress /home/$USER /media/linuxbackup/home/$USER I excluded the .cache folder cause ...
6
votes
1answer
657 views

How to set up an rsync backup to Ubuntu securely?

I have been following various other tutorials and blog posts on setting up a Ubuntu machine as a backup "server" (I'll call it a server, but it's just running Ubuntu desktop) that I push new files to ...
6
votes
2answers
3k views

How can I copy a file to a new location, creating the directory as well

I want to cp a file to another directory but that directory doesn't exist yet. So I would do: mkdir /new_place cp the_file /new_place Can I do this in one? I imagine something like cp the_file -m ...
6
votes
4answers
28k views

How do I make rsync delete files that have been deleted from the source folder?

I recently set up a machine with Ubuntu Server to host game servers. I installed a backup plugin for each game server that creates frequent backups of game world files in a particular folder on the ...
6
votes
2answers
3k views

Switch to using rdiff-backup for backups of / instead of rsync?

I usually use rsync to do backups, with a command like this: rsync -avxz -e "ssh" --exclude ".gvfs" --numeric-ids / /media/Backup/slash/ How can I convert the arguments I use with rysnc to ...
6
votes
0answers
73 views

Is there a way to download updates differentially rather than via .deb files? [duplicate]

Possible Duplicate: When will Ubuntu include delta updates? In the old days, you downloaded or installed packages from a CD, and then a year later you got the new version of your ...
5
votes
1answer
9k views

rsync between two computers on LAN

I want to rsync between two computers on my LAN with IP-adresses 192.168.20.9 and 192.168.20.10 both running Ubuntu 10.10. I want to try rsync and ssh service between the two computers.
5
votes
3answers
7k views

Backing up files from specific folders in rsync

How can I specify specific files to include/exclude in grsync/rsync? Currently, I use different operations to backup files from only specified folders. I want to do it now in 1 pass. I think I ...
5
votes
4answers
7k views

Using rsync with exclude/include

I'm running 2 ubuntu 9.10 servers. I have to synchronize the changes between these two machines. The following are the directories I've to synchronize: /usr, /etc, /var, /bin, /sbin, /lib I'm using ...
5
votes
2answers
3k views

Copying a Running Physical Server to Virtual Box

I have a server running Ubuntu 10.04. As I want to test some maintenance work, such as upgrading to 12.04, I thought I should create a VM copy of the server using Virtual Box. I don't have a physical ...
4
votes
3answers
7k views

How to mount FTP resources with fstab when connection is available?

I'd like to automount an FTP folder using curlftpfs putting in fstab a row like: curlftpfs#user:pwd@myhost:port/folder/ /mnt/mymountfolder fuse allow_other,uid=1000,gid=1000,umask=0022,_netdev 0 0 ...
4
votes
2answers
1k views

What can I do about rsync of large files killing my laptop's wifi connection

When I run a rsync to backup my home folder over the network like so: rsync -avhz --progress --delete /home/dbdean/ david@tv.local:/home/backups/david/ I seem to have problems with my quite large ...
4
votes
3answers
1k views

How can I exclude all the svn metadata while synchronizing with unison?

How can I exclude all the svn metadata while synchronizing with unison? So that all subfiles/folders are also ignored! Thank you for you help
4
votes
1answer
801 views

Rsync behavior in a cron script

I have an nfs device that creates checkpoint (backups) everyday. I want to use Rsync to copy these checkpoints to another device (Drobo connected via iSCSI). So I've run the script on a single nfs ...
4
votes
1answer
2k views

How to rdiff-backup / rsnapshot / backupninja from LOCAL to REMOTE machine?

I'm a bit confused about doing backups with rsync/rdiff-backup / rsnapshot via SSH. I've been looking at utilities such as backupninja and rsnapshot. These are rsync / rdiff based backup systems, ...
4
votes
1answer
240 views

Is it a good idea to restore a btrfs snapshot with rsync?

Is it safe to use rsync to restore a btrfs snapshot? Just to give a example rsync -ax /home/snapshot/my_user_folder /home/my_user_folder where /home is my home folder and /home/snapshot is my ...
4
votes
2answers
151 views

Should one call this an inverse differential backup and how does one achieve it?

I make a lot of backups. I do so on different disks, which are stored on different places. I am looking for a type of backup, but I can't find its name (which I need in order to figure out whether ...
4
votes
1answer
2k views

How to upload a file to google drive?

I would like to just upload files to google drive from the command line. I don't care about synchronisation. I just want to upload things to google drive and if they exist they get replaced if not ...
4
votes
1answer
236 views

How can I make rsync to switch to another harddrive automatically if space on the first one is full?

My problem is, how can I make rsync to switch to another harddrive automatically if space on the first one is full? Is there a simple way? Or even a way without using rsync?
3
votes
3answers
18k views

Paswordless Rsync Over SSH Without Key Authentication [Un-Safe]

I want to set up an RSync job that would connect through SSH. I have my computer ( backup@myhost ) and the remote host ( test@remhost ) and I need to backup the folder ~/something with all it's ...
3
votes
4answers
6k views

Increase verbosity of running rsync process?

I'm running 'rsync -a -i /foo /bar'. Every now and then I would like to know what exactly rsync is doing at the moment without having the -v output all the time. Is it possible to increase the ...
3
votes
3answers
199 views

Syncing dm-crypted drives?

I have 2 usb sticks, 8GB each: usb1 = /dev/sdb usb2 = /dev/sdc usb1 is a full dm-crypted drive and I am currently using usb2 as a backup, just incase usb1 fails. I am cloning usb1 to usb2 using ...
3
votes
2answers
3k views

Is there any GUI application for command rsync?

I am currently synchronize between local folders in my computer by following command: rsync -av --delete "[source]" "[destination]" Now I want to do this via GUI. so, Is there any GUI available for ...