Skip to content
Snippets Groups Projects
Commit dd287b15 authored by nimrod's avatar nimrod
Browse files

- Added shell function to sync downloaded comics from the torrent machine to the laptop.

parent 22b9a344
No related branches found
No related tags found
No related merge requests found
...@@ -106,4 +106,10 @@ docker-dev () { ...@@ -106,4 +106,10 @@ docker-dev () {
--workdir "$PWD" "$repo:dev" /bin/sh -l --workdir "$PWD" "$repo:dev" /bin/sh -l
} }
sync-comics () {
this_month="$( date '+xbmc:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )"
last_month="$( date --date '1 month ago' '+xbmc:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )"
rsync --recursive --compress --progress "$last_month" "$this_month" "$HOME/Downloads/Comics/"
}
. $HOME/Documents/Shore/bundle_certs/bundle_certs . $HOME/Documents/Shore/bundle_certs/bundle_certs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment