This is something that everyone should do, so I'm linking it here and will add it to the IT Guy Toolkit sticky.
We've seen plenty of crazy ways to keep your precious data safe. Some people burn a few tons of DVDs, others make a montly habit of swapping hard drives into a safe location. In today's How-To we'll show you how to automatically keep your data backed up from your computer with ssh and rsync. Feel that? That's our warm comfy safe-data blankie. Check it out.
rsync is very, very handy.
You should follow me on Mastodon: @[email protected]
You should follow me on Bluesky: @legion.bsky.social
"The golden shower threw me off." -- garion333
I do use RSYNC on my linux boxes but I use Robocopy on Windows.
Pathnames may and will vary for your own needs but you should get the majority of it from these.
First on the local PCs, I run this .cmd/.bat file (ignore line wraps and in this script I'm backing up the Favorites, the My Documents, the Outlook Express and Outlook 2003 store locations):
On my server with where everyone has their 'home' drive and where the shared folder is also hosted I run this robocopy script (this runs an hour after the local PCs run their scripts so it backs it all up) and it backs everything up to an external drive (it could just as well back everything up to another PC or another internal drive but this works for me since in a disaster I can grab the external and go). Anyway, here's the script, again ignore line wrap and this one relies on a text file named "shares.txt" that has the name of the shares to copy:
I run a variant of the server backup script on the last day of the month which does do the purge option. I could probably do this everynight since I run volume shadowcopy but why tempt fate?
Of course there is an even easier way, it was covered in this months Technet magazine and that's by using the XP PowerToy 'SyncToy'. Read that here.
Do you ever walk alone like a drifter in the dark?
I've been using Robocopy onto a Samba server, but I think the DST change got it all confused. I'll have to check out SyncToy, though!
Make sure your samba box has the right TZ info. My two here at home are FC3 and were set to Vancouver BC as the timezone. FC3 was patched with the DST but not the Canadian TZ's; Canadia hadn't yet agreed to follow and of course RH only updates FC versions for 6-12 months. The main box is always on and on a KVM so it was easy to go into gnome and change the timezone to US LA. I had to pull the other one out of the garage, let it warm up to room temp and turn it on to make the same changes (I can do some things from the terminal in linux but changing TZ's isn't one of them) and then put back out into the garage.
Do you ever walk alone like a drifter in the dark?
There's a nice program called "unison" I use to keep my laptop and desktop in sync. It has the distinct advantage of being pretty idiot proof.
This reminds me of something I've been thinking about lately. You know how with just about any broadband connection, they give you a free chunk of webspace with ftp access? Almost nobody uses it. What if an app were to run as a local service, and upon entering credentials and paths/folders to backup, perform a daily/hourly/etc backup of files? Anyone know of such an app? Most backup services use their own servers and charge fees. This could be free. I feel like I've posted about this before, but I may have drank those brain cells away.
Something like that would be easy to batch script. However, I know *I* wouldn't put my information f that level on my BB provider's network.
Better to reign in P&C than serve in Everything Else. - Tanglebones
Free-to-play games are free so that the people who pay money for them have someone to play them with. -Cloquette
It's relatively trivial to write something like that, and you could encrypt it all if you wanted to.
That's what I was thinking. Common dialog box, encryption library, checksums of files to determine changes, ftp (maybe even sftp if the host allows), make it easy, and the average user has a free and robust backup package. If the internet has taught me anything, it's that giving away free stuff makes you rich. Nobody's heard of such an app?
There's also Mozy.
Do you ever walk alone like a drifter in the dark?