You are not logged in.
Pages: 1
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
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
whats wrong with rsync? This is exactly what it was written to do.
Offline
rsync +1
Mr Green
Offline
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
Pages: 1