NASLite Network Attached Storage

www.serverelements.com
Task-specific simplicity with low hardware requirements.
It is currently Thu Apr 18, 2024 11:38 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Backup scripts?
PostPosted: Sun Apr 30, 2006 2:55 pm 
Offline

Joined: Sun Apr 30, 2006 2:40 pm
Posts: 4
Hello, all.

I setup NASLitse-SMB yesterday and so far am pretty happy with it.

The main reason I want to get this box going is so that I can back up the data files on my server. Imagine! BACKUPS!!! Boggles the mind!

What I am here for is to ask if anyone has any experience with scripts that automate backups to a NASLite-SMB server. I have found several on the web, but I figured it would be better to go to the "horse's mouth" on this one.

Does anyone have any home-grown scripts they'd be willing to share or experience with full-blown backup solutions (like Bacula, etc)?

I look forward to your replies.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 7:53 pm 
Offline

Joined: Fri Sep 09, 2005 9:16 am
Posts: 22
This is what I use, to back up from OS X. You'll most likely need to change the paths to where your NAS is mounted on your machine, and what folder you're backing up. This is a bash script, so it won't work on Windows.

Code:
#! /bin/sh
pathtonetwork=/Volumes/public;
if
    cd $pathtonetwork
then
    echo "TIME NOW:"
    date
    echo "BACKING UP ITUNES LIBRARY TO SERVER..."
#lookup how rsync works, if you're on a unix then it's probably the best way of doing this.
    rsync -av --delete ~/Music/iTunes/iTunes\ Music/ $pathtonetwork/Chris/Music
# ^ repeat for other folders that need backing up
    echo
    echo "NETWORK BACKUP COMPLETED AT:"
    date
else
    echo "Network drive is NOT MOUNTED."
fi


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 9:01 pm 
Offline

Joined: Sun Apr 30, 2006 2:40 pm
Posts: 4
That is pretty slick. Nice and simple.
Thanks for that.

So, rsync seems to be the best way to get a backup done?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 5:24 am 
Offline

Joined: Sun Sep 11, 2005 4:13 am
Posts: 36
Fraid as I am a windows user I went for the ultimate quick and dirty robocopy script (with no commenting). It does only keep a single backup copy of tha data as this is all that I am after


@echo off
c:\tools\robocopy M:\meedio\Pictures d:\backup\pictures\ /s /e /r:5 /w:1 /LOG:copylog.txt /v /np /tee /fft /XF "thumm.db"
c:\tools\robocopy "M:\meedio\video\The Hall Family" "D:\backup\video\The hall family" /s /e /r:5 /w:1 /LOG+:copylog.txt /v /np /eta /tee /fft /XF "thumm.db"


This backs up media (new or changed) files (and dirs) from the nas (m:\) to the local PC (d:\) and writes a text file log... I use my htpc software to start this backup each night. Robocopy can be downloaded from microsoft


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group