LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2006, 01:25 PM   #1
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Rep: Reputation: 15
Rsync - Backup vs. Hard Links Only


I want to set up 2 instances of rsync with different functions.

First, I want the traditional remote backup: nightly and weekly backups of certain directories copied over ssh to a second computer (I assume originals will be on the server end and the backup machine will be the client, using ssh to fetch the data).

Secondly, the machine with the backups is also an ftp server. I have previously mounted whole hard drives in a shared folder (/home/ftp with folders like upload, stuff1, stuff2, stuff3), but I want to use rsync to create hard links (no copies, just links) so I can, say, have the contents of stuff folders 1-3 in a new folder just called stuff and then periodically reload the links as changes occur in the original folders. I thought about just making a script for nightly "cp -la", but it wouldn't check for stuff being deleted.

How do I distinguish between backup and strictly hard links with rsync?
 
Old 08-17-2006, 09:58 PM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
You can't make hard links across file systems. That is you can't hard link a name on one partition to a file on another partition or hard drive.
 
Old 08-18-2006, 07:32 AM   #3
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 15
You know, that thought crossed my mind last night. Thanks for the heads up.
 
  


Reply



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
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
RAID 1 or RSYNC BACKUP otagojo Linux - General 7 08-01-2005 12:34 AM
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 02:22 PM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 05:08 AM
rsync backup... tarballed Linux - Networking 10 06-27-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration