Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2009, 12:59
fweijers fweijers is offline
Junior Member
 
Join Date: Aug 2009
Posts: 13
Thanks: 0
Thanked 3 Times in 3 Posts
Default making backups automatically

Hi,

I'm looking for an rsync command with the following features:
- From specified directories copy new & changed files to destination.
- Do not synchronise deletions.

Which attributes are needed on the rsync command?

Purpose (for those interested)
I'm going to use this in my dual-bay NAS (D-LINK DNS-323).
This is an example of what I have running now:
rsync -aivx /mnt/HD_a2/FOTOS /mnt/HD_b2/BACKUP

This is the scripting and HOWTO of the backup system for this NAS.
http://wiki.dns323.info/howto:backup
Reply With Quote
Sponsored Links
  #2  
Old 28th August 2009, 14:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by fweijers View Post
- Do not synchronise deletions.
Don't use the --delete switch. For more details, see
Code:
man rsync
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th August 2009, 16:41
fweijers fweijers is offline
Junior Member
 
Join Date: Aug 2009
Posts: 13
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

Thanks. I just found something very explanatory:

http://www.cyberciti.biz/faq/use-rsy...kup-directory/

indeed you are correct:
Assuming that USB pen or external USB hard disk is mounted at /mnt/usbpen, enter the following command to backup (sync) new files and changes to existing files but don't remove files in backup directory:
$ rsync -au /home/tom /mnt/usbpen

To delete files in backup directory that no longer exist in directory being backed up, enter:
$ rsync -au --delete /home/tom /mnt/usbpen
[/SIZE]
Reply With Quote
Reply

Bookmarks

Tags
rsync backup

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue compiling kernel 2.6.19.1 in Ubuntu 6.10 sqrtof3 Kernel Questions 14 9th April 2010 20:43
Install failure -- Apache 1.3 missing? Allen15 Installation/Configuration 11 24th February 2009 10:53
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 11:46


All times are GMT +2. The time now is 09:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.