Archiving utility (Windows console, uses FTP)
Archiver host "user" "password" listFile [localBaseFolder [remoteBaseFolder]]
[www]
Archiver.exe
INIT.bat
MAKE_REMOTE_FOLDERS.bat
UPLOAD.bat
@ATTRIB +A /S /D www\*.*
Initializes all files and directories (subfolders) under www folder with Archive flag. Note that when a file is modified Windows turns on the Archive flag. Unfortunately Windows doesn't do it for directories when their contents change.
@echo off
dir www /ad /b /s > upload.list
archiver ftpServerIPaddressOrDNSname "ftpUser" "ftpPassword" upload.list fullPathTo_www_folder httpdocs
pause
del upload.list
- Scans folder www for directories (subfolders) and generates an upload.list with the full pathnames.
- Creates the folders on the remote (ignoring any already existing) and clears archive flag for those that were uploaded/created remotely succesfully.
- Waits for keypress to close
- Deletes upload.list file (press CTRL+C at step 3 to retain upload.list)
@echo off
dir www /aa /b /s > upload.list
archiver ftpServerIPaddressOrDNSname "ftpUser" "ftpPassword" upload.list www httpdocs
pause
del upload.list
- Scans folder www for modifications (files for which Windows had set the Arcive flag - and folders for which archive bit was manually set) and generates an upload.list with the full pathnames.
- Uploads changed files (also creates remote folders if archive flag had been set for them) and clears archive flag for those that were uploaded/created remotely succesfully.
- Waits for keypress to close
- Deletes upload.list file (press CTRL+C at step 3 to retain upload.list)
