Code covered by the BSD License  

Highlights from
backup

5.0

5.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 4.79 KB File ID: #20635

backup

by Ikaro Silva

 

09 Jul 2008 (Updated 15 Jul 2008)

Simple wrapper to XCOPY function for backing up folders. Changes the file archive attributes and ca

| Watch this File

File Information
Description

This is a wrapper to the XCOPY commnand, with the four different modes:

prune -updates backup dir and delete files on the back up dir that do not exist on the original dir.

find -find unique files in backup dir

arch -set archive attb. to ON for files on the original dir that do not exist on the backup dir.

sync -updates BOTH directories with the newest files from EITHER directory.

Options that can be set for the XCOPY command are listed at and on the help for this function:

http://www.computerhope.com/xcopyhlp.htm

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements windows
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
25 Aug 2011 Wade

The functionality of this function is exactly what I was looking for. Contains a lot of low-level options. Seems very robust.

Please login to add a comment or rating.
Updates
11 Jul 2008

Fixed minor issues and added three functionalities:

'find' -finds unique files between directories
'arch' -set the archive attribute to ON on files from unique files

'sync' -updtes both directories with most recent files from both.

11 Jul 2008

Fixed minor issues and added three more modes (find, arch, and sync).

15 Jul 2008

file was not fully uploaded with the last update

Tag Activity for this File
Tag Applied By Date/Time
path Ikaro Silva 22 Oct 2008 10:09:37
directories Ikaro Silva 22 Oct 2008 10:09:37
files Ikaro Silva 22 Oct 2008 10:09:37
back up Ikaro Silva 22 Oct 2008 10:09:37
archive Ikaro Silva 22 Oct 2008 10:09:37
xcopy Ikaro Silva 22 Oct 2008 10:09:37

Contact us at files@mathworks.com