Browsing articles tagged with "rsync - Admins Goodies"
Jan 24, 2013
tom

Doing backup from Linux to USB Pen Drive with rsync

I am trying to do a backup from Linux to USB Pen Drive with rsync each day and I take home the Pen Drive at night. I am running the following command but it looks like its update every file every day? rsync -y -r -vv ~/Documents/ /media/PenDrive/xxxx-home/ Can someone please tell me if this can be done better I used to just tar of my ~/Documents and cp the file to my Pen Drive […]

Continue Reading »
Jan 22, 2013
tom

What directories absolutely need to be in a full system backup? [closed]

I’m currently configuring an Ubuntu Server system and would like to perform routine backups using rsync. The goal is to have the right files backed up so that I can use the backup to create an identical system running somewhere else without a hitch (identical ssh, apache, mysql, etc). Is rsync the right tool for the job? If so, which directories would I absolutely need to include in the backup? Asked by MaxMackie If you […]

Continue Reading »
Jan 17, 2013
tom

rsync from linux host to fat32

i like to backup my linux based NAS (small files like picutres) to an attached USB Disk with FAT32. For this i like to use rsync. I know, that this will not work correct per default. rsync will sync the files again and again. I found this question and answers: How can I use rsync with a FAT file system? But, even if I use the –modify-window=1 and –size-only option, all files are processed again. […]

Continue Reading »
Dec 29, 2012
tom

make a cronjob wait for previous rsync job to finish

I’m using rsync to backup some data from one server to another. All works fine, but it might take longer to finish depending on how much data there is to transfer. Is there any gauranteed way to ensure that an rsync command doesn’t start before the previous one finished using a cronjob? For example, every hour I run the rsync command, but its possible the transfer takes more than 1 hour to complete, so the […]

Continue Reading »
Dec 12, 2012
tom

What shell script is calling rsync?

For the last couple of days, I’ve woken up to find rsync churning away with 1.6GB of memory, slowing my Mac down significantly. Activity Monitor only says that rsync is coming from sh, but I’m trying to track down more info; specifically, what shell script is calling rsync. How can I find that out? Asked by Rob D. It’s simple. Use the ps command to check the parent of the rsync process, something like this. […]

Continue Reading »
Dec 9, 2012
tom

How to tell rsync not to touch the destination directory permissions?

I am using rsync to sync a directory from a machine to another but I encountered the following problem: the destination directory permissions are altered. rsync -ahv defaults/ root@hostname:~/ The problem is that in this case the permissions and ownership of the defaults forlder will be assigned to the destination folder. I do want to keep the permissions for the files and subdirectories but not for the source directory itself. Also, I do not want […]

Continue Reading »
Dec 1, 2012
tom

FreeBSD restore of /rescue

I’m running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring / (excluding mount-points). The problem is that /rescue fills the / partition (to the extent that I can’t restore my entire / partition) by taking up more place than it originally did. I suppose it’s because /rescue contains links and not files, and that files, not links, are restored into my / partition. I’ve tried restoring with […]

Continue Reading »
Nov 1, 2012
tom

syncing local folders

What is a best way to keep in sync two local folders ? I know I can use rsync -Ra but I need to keep in sync all the time. Is it possible to make rsync sit in background and constantly sync local folders. Asked by Tom If you need to sync directories, and not just have a mirror copy of a directory, I recommend Unison, which we use in our environment. It can keep […]

Continue Reading »
Oct 22, 2012
tom

rsync – How to exclude one .htaccess but not all of them

I have an rsync command for copying my files from dev to production. I don’t want to copy the .htaccess file that’s in the root of the HTML directory but, I do want to copy the few .htaccess files that are in its sub directories. I’m using the argument –exclude .htaccess which is stopping all of the files from getting copied. The other arguments I’m including are -a –recursive –times –perms. Is it possible to […]

Continue Reading »
Oct 6, 2012
tom

How do you synchronise huge sparse files (VM disk images) between machines?

Is there a command, such as rsync, which can synchronise huge, sparse, files from one linux server to another? It is very important that the destination file remains sparse. It may be longer (but not bigger) than the drive which contains it. Only changed blocks should be sent across the wire. I have tried rsync, but got no joy. groups.google.com/group/mailing.unix.rsync/browse_thread/thread/94f39271980513d3 If I write a programme to do this, am I just reinventing the wheel? http://www.finalcog.com/synchronise-block-devices […]

Continue Reading »
Pages:1234567...33»