LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2005, 05:48 AM   #1
Arndt
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Question Backup samba shares to an NAS.


Hello,

we want to backup data of samba shares(PC1) to an NAS Storage.

The Backuptype must be differential. Sunday we want to make a
full backup. The other days are only differential backups.

Important: Open Files must be save, too.

Overview
""""""""""
Hostname: PC1
Services: Samba
Shares: \\folder1, \\folder2, \\folder3, \\folder4

Hostname: NAS-Storage
Services: Samba
Shares: \\disc_1, \\disc_2

Has anybody an idea to solve this problem?
Should i use an shellscript scheduled by a chronjob?
Has someone an example of a backup-shell-script?

Which backuptool should i use to manage the differential backup with
the security of saving open files?

I'am very thankfull for all ideas.

Arndt
 
Old 03-20-2005, 10:36 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

rsync is probably the best tool for your backups. I'm not sure what OS your NAS uses but you may want to avoid using the smb protocol as your file permissions will be lost.
 
Old 03-23-2005, 08:32 AM   #3
Arndt
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Backup-Problem / Question

Hello,

is it possible to backup only the changed and new created files between the last backup in a seperate backup folder?
With rsync?

For example:
- On Monday we make a full backup in /backup/MO_20050321/.
- On Thuesday the file "abc.txt" has changed and a new file called "def.txt" was created.
All other files are the same version as in the monday backup.

On Thuesday we want to backup abc.txt and def.txt in the Folder DI_20050322 but not
the files, we've saved on monday.

Please help me!
Have you any suggestions?

greetings

Arndt

Last edited by Arndt; 03-23-2005 at 08:34 AM.
 
Old 03-23-2005, 01:52 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
The easiest way I can think of is to run a find command to find files modified within the last day and pipe it into rsync, you can then run rsync with "--include-from= -"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will samba available cross internet ?nas ? my-unix-dream Linux - Newbie 1 04-21-2005 06:17 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Using NT Backup on samba shares RobLea Linux - Software 1 10-08-2003 11:51 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 03:23 PM
Backup and Windows shares. Road Linux - General 1 06-21-2002 07:35 PM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration