Sign in to follow this  
Followers 0

Need Simple Backup

14 posts in this topic

Posted

I need to backup just the Users folder from C: to a Users folder to D: I was thinking a batch file would work but it would need to check if anything has changed with the C: Users folder. I am open for suggestions including maybe a small freeware program that can do this job easy for me.. Thanks

Share this post


Link to post
Share on other sites

Posted

Is D: a partition on the same drive?

Share this post


Link to post
Share on other sites

Posted

D: is second drive and is seprate

Share this post


Link to post
Share on other sites

Posted

I wrote a Python(3) script that can do this very easily, it's an incremental backup with a simple command line syntax. I suppose I could write a GUI for it but I don't really need one. It's simple enough to use though. If you want it.

Share this post


Link to post
Share on other sites

Posted

astropheed can I check it out

Share this post


Link to post
Share on other sites

Posted

OK Good. That's a real backup.

Users contains the registry hives. Are you looking to back those up too?

Share this post


Link to post
Share on other sites

Posted

I just need the main folders like downloads,pictures, ect ...This don't need to be that advanced

Share this post


Link to post
Share on other sites

Posted (edited)

Sure http://pastebin.com/5QfVGV1E

Usage: (In command)(Assuming you have Python 3 Installed already)

python backup.py <Source Location> <Destination Location> <Switches>

EX: python backup.py C:/Users/ D:/Users/ /s /d

All switches are in the source, for more usage help just run backup.py in Command with no arguments.

Cheers

Edit: Obviously you need to make a backup.py file from the source code... paste into Notepad > Save As > backup.py

Edited by astropheed

Share this post


Link to post
Share on other sites

Posted

I am looking at Robocopy GUI but lost in how to use it

Share this post


Link to post
Share on other sites

Posted

Ok got python installed copied your source code and made file backup.py In the code where do I setup the C:\Users\Sam to backup to D:\Users\Sam

Share this post


Link to post
Share on other sites

Posted

in Command enter this: python <Location of backup.py> <Location of thing to Copy> <Location of where to copy to> <Switches>

So if say you had backup.py on your desktop you'd type this into Command-Line:

python C:/Users/Sam/Desktop/backup.py C:\Users\Sam D:\Users\Sam

Command line is the command prompt for Windows to access it type Win+R in the box type CMD and hit enter.

Share this post


Link to post
Share on other sites

Posted

thx everyone..my issue has been resolved..sweet got my simple backup

Share this post


Link to post
Share on other sites

Posted (edited)

thx everyone..my issue has been resolved..sweet got my simple backup

Are you using my program or did you find another method?

EDIT

Please keep in mind there is a small bug on line 63:

where it says if "/a" or "/ao" in sys.argv[3:]:

it should say if ("/a" or "/ao") in sys.argv[3:]:

I changed this in a later version but must have posted a slightly older one. Everything else is fine. Sorry.

Edited by astropheed

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.