LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-30-2007, 04:22 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS
Posts: 415

Rep: Reputation: 31
Question A sime Rsync backup


Excuse me for the typo: "A simple Rsync Backup"
We are using a Mac OS X server:
1. Want to backup folders located in HD to a LaCie Drive(external)
2. Want to backup folders to a tape backup device (exabyte)
3. Would like to schedule the backups weekly at 10PM
4. Would like to get a notification email with results.

I'm asking this because I'm not a shell script expert I found this little script and I'm playing with it:

#!/bin/sh

# To use Apple's rsync switch commented lines below
# To use rsyncx:
RSYNC=/usr/local/bin/rsync --eahfs --showtogo
# To use built-in rsync (OS X 10.4 and later):
# RSYNC=/usr/bin/rsync -E

# sudo runs the backup as root
# --eahfs enables HFS+ mode
# -a turns on archive mode (recursive copy + retain attributes)
# -x don't cross device boundaries (ignore mounted volumes)
# -S handle sparse files efficiently
# --showtogo shows the number of files left to process
# --delete deletes any files that have been deleted locally
# $* expands to any extra command line options you may give

sudo $RSYNC -a -x -S --delete \
--exclude-from backup_excludes.txt $* / /Volumes/DataHD/
$RSYNC -a /Volumes/DataHD /Volumes/"LaCie Disk"
# make the backup bootable - comment this out if needed

#sudo bless -folder /Volumes/OSX/System/Library/CoreServices

I don't know how to refer to the tape device which has a firewire connection. I was looking under /dev and /Volumes folder. I was looking for the IEEE or something similar. We have been using retrospect but my boss doesn't like it. Help is greatly appreciated. thanks

Last edited by cucolin@; 03-30-2007 at 05:18 PM.
 
Old 04-01-2007, 06:15 PM   #2
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Don't all of the devices on usb, and firewire buses show up as scsi devices? My old server doesn't have firewire. Heck, I'm still using promise-IDE cards. USB-2 devices show up on all of my distros as sda sdb etc. As a firewire device wouldn't it be using ATAPI commands over the firewire bus?
 
  


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
backup with rsync muhammednavas Linux - Networking 4 12-01-2006 07:58 AM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 02:13 AM
RAID 1 or RSYNC BACKUP otagojo Linux - General 7 08-01-2005 01:34 AM
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 03:22 PM
rsync backup... tarballed Linux - Networking 10 06-27-2003 11:43 AM

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

All times are GMT -5. The time now is 06:11 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