Restore selected files using a script from Sugarsync, SpiderOak, Dropbox, Carbonite ... or?

Posted on 2014-12-10
Last Modified: 2014-12-31
I'm working to set up a backup system with one of the mainstream online backup companies.
So, I'm looking at Sugarsync, SpiderOak, Dropbox and Carbonite.
(Any other suggestions would be appreciated).

One of the things I need to be able to do is to run a Windows batch file that will restore a file (or files) from the online backup.  
And, I need to be able to delete a file (or files) from the online backup.
Well, I guess it wouldn't have to be a batch file but that's what I'm most comfortable with and the task is pretty simple.
In the end it will be part of a process that will run hands-off using a scheduler.

Is that possible?  I don't have much experience with these services.
Question by:Fred Marshall
  • 4
  • 3
  • 2

Assisted Solution

by:Scot Halvorsen
Scot Halvorsen earned 250 total points
ID: 40492947
I am not sure about the others, however DropBox keeps a local directory synced with your files in their care. In most cases it can be found within your home directory identified by variable "HOMEPATH" (Type "set" within any dos box to see all of the default variables.) Any time you add or remove files from this directory (even if it is done on another computer), your computer will be kept up to date.

So a simple script would be able to restore your files any time you wish.

@echo off
set sourcedir=%HOMEPATH%\Dropbox\BackupDir
set destdir=c:\BackupCopy
echo Copying from %sourcedir% to %destdir%
xcopy %sourcedir% %destdir% /i
echo Finished

Open in new window

The variables "sourcedir" and "destdir" can be changed to point to the directories that you wish to copy.
LVL 25

Author Comment

by:Fred Marshall
ID: 40494424
shalvors:  Thanks!  I'd figured that much out myself as I have Dropbox installed.  I'm less familiar with using Dropbox as a backup destination.

I still wonder about the others.  There are quite a few Carbonite instances already and I'd like to be able to be a bit flexible.

Expert Comment

by:Scot Halvorsen
ID: 40494564
From what I have read online, Carbonite acts more like a traditional backup solution. Think of it like a cloud tape backup. The client software collects up all files of certain types from your "Users" directories and sends them to their storage facility. If you want something restored, you have to explicitly tell them to send the file back to you.

With this in mind, I don't think that you original requirement to delete or restore files with a batch script would be possible with Carbonite.
LVL 25

Author Comment

by:Fred Marshall
ID: 40501356
I wonder if it matters which version of Carbonite is being used?  It appears the products vary quite a bit in terms of such capabilities.

The questions remain for SugarSync and SpiderOak (the latter I'd never heard of before....).
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

LVL 26

Expert Comment

by:Thomas Zucker-Scharff
ID: 40502637
I do NOT recommend the vanilla version of dropbox as a backup because it is not a true backup at all.  Spideroak is very good in terms of retention and ease of use with command line options.  I have used spideroak for years and up until several weeks ago would have recommended this as your best option.  I am currently using Crashplan as my backup option.  CrashPlanPROe is an excellent product for business (enterprise version).  We have run it locally (we have a local CP server instead of using their cloud) for a couple of years now.  I switched from spideroak to crashplan at home as well.  I am not as familiar with the command line in CP, but I do know that at work we can monitor and control virtually everything through a graphical interface, including getting various stats.

My article on why I changed from SpiderOak to CrashPlan is here:

I also wrote a basic article on backup here:

I tried sugarsync and didn't like it at all - I don't remember exactly why.  Versioning is key here.  backup without versioning is useless and a robust restore option is necessary.  I believe that CP has the best options.  Moreover, CP will allow users to do their own restores (read less of a headache for you).  Also CP allowed us to easily recover from a cryptowall infection (in less than 2 hours) due to the versioning.
LVL 25

Author Comment

by:Fred Marshall
ID: 40511912
RE: "Using a script"

So far, the list of possibilities that I've gotten here are:

I've also learned that there is a developer's interface with SugarSync that appears to offer a way to automate scripts.
LVL 26

Expert Comment

by:Thomas Zucker-Scharff
ID: 40512194
As I said above I really feel dropbox is not true backup. Scripting should be fairly easy with spideroak,  like I said I have experience work the command line in spideroak.  I imagine crashplan has a similar command line interface. Either way I have not seen the kind of versioning support that is needed in dropbox. Also note that the algorithm puts a copy of each file on the source computer, including versioning.
LVL 25

Author Comment

by:Fred Marshall
ID: 40517903
So far now I have found that scripting should be possible with:


But it's not clear if SpiderOak or SugarSync would be dealt with using Windows command prompt scripts /  .bat files??
LVL 26

Accepted Solution

Thomas Zucker-Scharff earned 250 total points
ID: 40517922
Spideroak will work fine with batch files. I suggest AutoHotkey as a better alternative though.  I am new to AHK but I have found it to be much better than batch files in most cases.

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How  to check if a certain node/server backup schedule ran successfully? 4 54
Command to modify Registry entry 5 97
backup program 6 45
Solaris SUN OS 4.1.3 cloning 6 76
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Steve Terp was featured in a video created by CRN about how "Channel Is Crucial To Market Disruption". Click on View source to see the video and article
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now