diff --git a/.bashrc b/.bashrc index e9e3e29dddb502eabe916d2e26d4e3d9acc2c422..9b23dbb2a02974736e83790e6d04ac2c3d57db6b 100644 --- a/.bashrc +++ b/.bashrc @@ -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