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

learn more… | top users | synonyms

12
votes
1answer
3k 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 ...
12
votes
2answers
3k 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 ...
11
votes
4answers
961 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
1answer
3k 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 ...
10
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
1answer
3k 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
1answer
12k 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 ...
9
votes
3answers
25k 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, ...
8
votes
3answers
4k 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 ...
8
votes
2answers
14k 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. ...
8
votes
4answers
1k 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 ...
8
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 ...
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
880 views

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

When is it appropriate to use dump vs rsync for backups?
6
votes
2answers
12k 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. ...
6
votes
3answers
3k 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
769 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
652 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
1answer
541 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
2k 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
71 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
3answers
3k 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 ...
5
votes
4answers
6k 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
1answer
4k 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: ...
5
votes
2answers
1k 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 ...
5
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 ...
4
votes
3answers
5k 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 ...
4
votes
2answers
4k 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 ...
4
votes
1answer
3k views

How to rsync to android

How can I connect to my android device to rsync music (or other stuff)? I tried mtpfs, but it fails. user@pc> mtpfs mnt Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw ...
4
votes
2answers
2k 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
2answers
767 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
3answers
3k 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
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, ...
3
votes
3answers
96 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
11k 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/*} ...
3
votes
3answers
106 views

How do I move thousands of files from a list?

So, I have a list of files in a text file. I believe it's about 100,000 files. The files in said list are spread across many directories, have different sizes, filenames, extensions, ages, etc. I am ...
3
votes
1answer
551 views

What are the advantages and disadventages of git or bzr + rsync vs rdiff-backup?

I used to use rsync to do backups, but then I switched to rdiff-backup to incremental backups. Recently, I discovered git and bzr while working on a coding project. So, I was thinking, I could have ...
3
votes
2answers
473 views

How to exclude previously deleted files from a new rsync copy?

Extending on this question: Automatically sync a folder to a USB when USB is plugged in? I do not want an automatic script but just a small bash script to do the following: Copy current ...
3
votes
1answer
511 views

Fast and reliable way to move directories from one HDD to another

I'm looking for a fast and reliable way to move some chosen directories from one HDD to another. The case is as follows. I'm getting a new desktop system which will replace my old desktop. I want to ...
3
votes
1answer
556 views

Problems trying to move my /home partition

I was running low in disk space on my Linux box, Ubuntu 10.10 Desktop, (specifically on my /home partition) so I added another disk to it and I am trying to move the home partition into it. I am ...
3
votes
1answer
642 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 ...
3
votes
1answer
524 views

Automatically rsync when hotplugging a sata drive(bay not esata)

to keep up on my backups I want to run a specific rsync command when I insert a specific sata hard drive(s) into any or all of my hotswap bays. Would this be done using uuids somehow to keep track of ...
3
votes
1answer
847 views

How to restore filesystem-backup made by rsync?

Running version 12.04, with Virtualmin/Webmin. I tried to remove all unnecessary linux-image files today, since the /boot partition was full. I followed a guide from Ask Ubuntu, but that resulted in ...
3
votes
1answer
174 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?
2
votes
4answers
4k views

Script for an incremental file system backup

I'd like to run the following incomplete script weekly in as a cron job to backup my home directory to an external drive mounted as /mnt/backups #!/bin/bash # TIMEDATE=$(date +%b-%d-%Y-%k:%M) ...
2
votes
1answer
7k 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.
2
votes
1answer
2k views

How do I trigger rsync on file modification?

I can sync folders with rsync -avz /directory /target, now I wish to do it if I changed a file in /directory so rsync should be called automatically. I am using Virtual Box and the shared folder of ...
2
votes
2answers
462 views

How to copy files from a remote computer?

I have set up a new pc, and I want to copy data from my old pc to it, without having to manually copy everything to an external drive. I guess I could do something with rsync over ssh, but have no ...
2
votes
1answer
3k views

rsync between two directories

Currently I use rsync -avh --stats --progress dir1(source)say dir2(destination) ... say I have 10 files in dir1 and I have copied using the above command to dir2 all 10 files. Say now I have ...