Commit 6b73b7ee authored by nimrod's avatar nimrod
Browse files

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

parent 8d1ab843
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -106,4 +106,10 @@ docker-dev () {
               --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