Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

ankitmehtame/archiver

Repository files navigation

Docker Image CI Docker Image Version (tag latest semver)

archiver

Archives media

To run

archiver --source "C:\Source" --destination "M:\Destination" --extensions ".mp4|.mpeg" --retention 15 --format "*yyyy-MM-dd_HH-mm-ss"

or

archiver -s "C:\Source" -d "M:\Destination" -e ".mp4|.mpeg" -r 15 -f "*yyyy-MM-dd_HH-mm-ss"

or

archiver --source "C:\Source" --extensions ".mp4|.mpeg" --retention 15 --max 45 --format "*yyyy-MM-dd_HH-mm-ss" --delete

or

docker run --rm -it  -v "//d//Media/Videos:/source" archiver --source /source --extensions ".mp4|.mpeg" --retention 30 --max 60 --format "*yyyy-MM-dd_HH-mm-ss" --delete --debug --demo --recurse

Options

--extensions | -e: File extensions to archive, example: ".mp4|.avi|.mpeg", default is ".*"

--retention | -r: Number of days to retain locally, after which files will be archived. Default values is 15.

--max | -m: Maximum number of days to look at. Default value is 36500.

--format | -f: File name date format. Date can only be at the front or the end. Example: "*yyyy-MM-dd_HH-mm-ss"

--debug: Enables debug logging (information by default)

--demo: Enables demo mode where no changes are made

--recurse: Recurse sub directories in source path. Default value is false.

--delete | -D: Deletes instead of archiving. Default value is false.

About

Archives media

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published