You are not logged in.

#1 2007-02-18 16:09:19

RevertTS
Member
Registered: 2006-02-25
Posts: 85

Remote File Backup Script

I have a FreeBSD box I set up recently that I download files to.  I'd like a way to be able to, basically, sync my main computer with it and "freshen" the files, using scp to get any files/folders that aren't already present on mine.  I figure it'd involve some directory listing/text manipulation to get the list of files, then size comparisons/boundary checking and scp calls. 

My question is what would be a good language for doing this; does the text manipulation put it out of Bash's range?  Would it be more suitable for something like Python?

Also, does my idea of using scp in that way make sense, or is there an easier way?  I'm going to need to be able to do this remotely, which is why I originally thought of that.

Offline

#2 2007-02-18 17:56:47

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Remote File Backup Script

If you are doing this as a "programming" experience, that sounds like something that could give you an interesting challenge and expand your programming horizons ... but if you are trying to "code your way out of a problem" then it is already done.
There are at least half-a-dozen programs out there that do what you want to do such as "BackupPC", Bacula, Amanda, etc.
Hope this helps.

R.

Offline

#3 2007-02-18 18:17:49

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Remote File Backup Script

whats wrong with rsync? This is exactly what it was written to do.

Offline

#4 2007-02-18 18:28:47

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Remote File Backup Script

rsync +1


Mr Green

Offline

#5 2007-02-19 01:18:31

RevertTS
Member
Registered: 2006-02-25
Posts: 85

Re: Remote File Backup Script

I hadn't looked that in depth into rsync.  After doing so, I'll probably just use it, but I still might work on a script for fun.

Thanks guys.

Offline

Board footer

Powered by FluxBB