Backup a folder to an another folder by using mirror update method.
pip install -r requirements.txt
-h, --help show this help message and exit.
-i, --input Target folder.
-o, --output Destination folder.
-p, --progress Show progress rather then verbose.
-nm, --nomodify Do not compare for file modification date.
-ns, --nosize Do not compare for file size.
-nd, --nodelete Do not delete files and folders that ONLY exist on the destination.
-nf, --nofail Ignore fail and keep the thing running.
-ie, --ignoreext Do not backup specific extension, example: "-ie png,jpg,exe"
MirrorUpdate.py -i "Folder to backup" -o "Backup folder"
MirrorUpdate.py -i "Folder to backup" -o "Backup folder" -p
MirrorUpdate.py -i "Folder to backup" -o "Backup folder" -p -nm
MirrorUpdate.py -i "Folder to backup" -o "Backup folder" -p -nm -nf -ie mp4,mp3
MirrorUpdate.py --input "Folder to backup" --output "Backup folder" --progress
Mirror target folder to destination folder:
- Copy/Replace from target folder to destination folder recursively.
- Copy/Replace job is determine by modify date and file size.
- Delete all files and folders that only available on destination folder.
- As the result, the target content will be as same as the destination content by modify date and file size.
File modification date will be compared File modification date will not being compared
File size will be compared File size will not being compared
Files and folders will be deleted to mirroring the target folder Files and folders will not be deleted