Page 1 of 1

Backup all files and folders *except* recycle and sys vol

Posted: 04 Apr 2016 04:49
by avsfan
Hi All,

I'm looking to write a script to backup all files and folders from one drive to another, except the Recycle Bin and System Volume Information folders.

It appears the syntax would be:

Code: Select all

backupto [destination], [source], 1,1,,,,,
If that's the case, how do I get it to skip just those two special system folders? I'm guessing there's a simple way to do it, but haven't been able to find it, yet.

Thanks!

andy

Re: Backup all files and folders *except* recycle and sys vo

Posted: 04 Apr 2016 06:53
by highend
Use e.g.:

Code: Select all

formatlist(listfolder("E:\", , 2), "f", , "!$RECYCLE.BIN|System Volume Information", "f");
For the [source] part of the backupto script command (and adapt the "E:\")