Awesome cloud based backup :)

JerryMungo

Honorary Master
Joined
Jul 18, 2008
Messages
37,527
Reaction score
6,276
So I've been using dropbox for cloud based backups for some time now... Nice tool. Google drive is very similar. Dropbox gives you 100Gb for R50 or 2Gb for free. So that's great, but you have to still manually back up to your dropbox folder periodically.

So I decided to add a synctoy routine to sync my regular work to my dropbox for backup. I then setup a scheduled task to run the sync every time I logged on. It works pretty well, however... I've just discovered (OK, not for the first time, but the penny dropped today)... SYMLINKS or Symbolic Links.

Linux users have had Symlinks for some time, but it's fairly new to Windows and since it's a command line utility, it's not well advertised. What a Symlink is effectively is a virtual link to the file or folder - any changes that happen in the original folder are seen in the Symlinked folder.

While a shortcut redirects you to the folder it's pointing to, a symlink is effectively a replica of the directory tree object. It's the same object, but exists in 'another location' on the harddrive.

There are two kinds of Symlinks - hard links and regular symlinks. With a hard link, when you delete the symlink, the original is deleted too, so beware of using the hard link swtich when creating your symlink. Since you create a symlink to a single file or folder at any time, the symlink is effectively the folder in the case of a folder symlink - not the folder contents. Opening the folder, will show the same contents on both and editing or deleting files in the symlinked folder affects both since you're working with the same contents, but deleting a symlinked folder that isn't hardlinked only removes the symlink.

So I replaced my Synctoy to Dropbox routine with a Symlink in dropbox of the folder I want to back up and I no longer have to sync my work to the dropbox - it's a copy of the live work without having to do the extra step. I could just work straight out of my dropbox, but I prefer to keep it seperate and specify which folders to backup.

So the steps are:
1) Install dropbox
2) Decide which folders you want backed up
3) Create symlinked folders in your dropbox for the folders in 2)

For 3) you have to run your command prompt as administrator.

The command is:

Code:
mklink /D C:\Users\MyName\Documents\Dropbox "C:\Users\MyName\FolderToBackUp"

Substitute your dropbox folder path and folder to backup above and Bob's your uncle. AFAIK only one copy of the files actually exist on your harddrive, but there will be a copy on the web as dropbox synchs in the background.

I haven't thought much about it, I've just posed, so tech folk, please interpolate and feel free to correct any inaccuracies.
 
Last edited:
Nice write-up. :)

Tool for the lazy:
http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

Be warned though, dropbox is a sync solution not backup. If your docs get trashed, so does you sync'd version.

Yeah, coupled with a backup including automated zip -> dropbox folder, it does pretty well as off-site storage. Pay accounts also offer file history. If you're just copying for archive / backup, then it should be OK. Having live data synced is certainly not complete backup for sure.
 
Last edited:
tbh I've been losing confidence in Dropbox lately. Didn't like how the handled the last hack.

Though all of the above will work equally well for Google Drive too so its not a major issue.
 
tbh I've been losing confidence in Dropbox lately. Didn't like how the handled the last hack.

Though all of the above will work equally well for Google Drive too so its not a major issue.

Agree - and tx for the awesome shell extension... quick q - does it only do a hard link (hard link is mentioned in the name)?
 
Nice

I use a linode VPS for file storage, FTP, etc etc, endless options really.
 
I also use dropbox for backup, but I use an AHK script move it:

I use the command line zip application to zip up the target file or folder, then I move and rename the file into the dropbox folder:

Code:
run zip -r c:/backup/example1 c:/file_or_folder_to_be_zipped
sleep 30000
run zip -r c:/backup/example2 c:/file_or_folder_to_be_zipped2
sleep 20000
FormatTime , timedate ,, Longdate 
filemove c:/backup/example1, C:/dropbox/backups/example1-%timedate%.zip
filemove c:/backup/example2, C:/dropbox/backups/example2-%timedate%.zip

I just add the script to windows scheduler and it runs once a day.

The resulting filename would be (with the current date) "example1-16 November 2012.zip"
 
Agree - and tx for the awesome shell extension... quick q - does it only do a hard link (hard link is mentioned in the name)?
Yes. Though something tells me there is a terminology mix-up here. Hardlinks apply to individual files. Junctions & symlinks to folders.

The app has like a billion options so regardless of what you need it can do it. ;) Finding the right option might prove challenging though....
 
Top
Sign up to the MyBroadband newsletter
X