Jump to content

hi,
I was googling this problem, but nothing comes up. 
It is possible, that there is no solution.
Problem:

I have a laptop that I work in classes, I want it to upload/synchronize the content of "Documents" every night into my NAS, which is mapped as network drive.
Does anyone have any idea how to tackle the problem?
The target folder may be read only for other computers on the network.

TYIA

 

[bonus points for using win10 built in tools only]

Link to comment
https://linustechtips.com/topic/855185-automatic-folder-content-upload/
Share on other sites

Link to post
Share on other sites

I have an idea, using only built in windows tools, but its a little complicated. It involves creating a CMD Batch Script that copies the folder to the NAS, and use Task Schedueler to start the script at the time you choose. Ill give more info if you would like.

Computers r fun

Link to post
Share on other sites

On 11/4/2017 at 12:26 PM, Luxex said:

go on!

Make sure to quote me or else I will never know you responded. Here is an overview of Xcopy, A command line....command used to copy entire folders. Syntax is:

xcopy source destination. SO If I wan't to copy my user directory to a backup drive, I could do this:

 

xcopy "C:/Users/Myself/" "B:/UserBackup" /H /S /E /-Y /I /G /R /O /X

 

and it would copy the folder. Those extra /X arguments are not necessary, but I highly suggest them. Read more about the arguments at the link above.

 

NEXT, running the command.

Open RUN by pressing "Windows Key+R" and enter: "taskschd.msc", and hit enter.

In Task Scheduler, on the right side you should see a pane, click "Create Task."

 

You can configure it how you wan't but at a minimum here is what you need in each tab:

General

Name and description

Run Weather user is logged on or not

Run with Highest privileges (Make sure every file gets copied)

Configure for: Your OS

 

Triggers, New

Your choice what goes here, this is what will cause the backup. I suggest you make it a time, but its really up to you.

 

Actions, New

Action: Start A Program

Program/Script: Your XCopy (xcopy "C:/Users/Myself/" "B:/UserBackup" /H /S /E /-Y /I /G /R /O /X)

 

Conditions

These are optional:

Start the task only if the computer is idle (Don't backup if your using it)

Start the task only if hte computer is on AC power (Check if you don't wan't it to backup while on battery power)

Wake the computer to run this task (Make sure the computer doesn't sleep through it and forget to backup)

 

Settings

Allow Task to be run on command

Stop task if runs longer than (Set to how often you have the backup schedueled. As in, if every night, set to one day.)

 

Thats it, you are done. Let me know if you have any other questions or if it doesn't work.

 

 

 

 

Computers r fun

Link to post
Share on other sites

You might want to google for "incremental" backup programs.
This will probably reduce the time it takes to do the backup :). And most of these programs will also have file versions management, so you can go back several versions if needed.

Link to post
Share on other sites

  • 3 weeks later...

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

×