config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 400526998dee64960ba3b62b2c1efbda2fd19fa7
parent 622c9b1cafac127ee9be888b902d97f147a9543e
Author: dwrz <dwrz@dwrz.net>
Date:   Sun, 16 Apr 2023 13:23:14 +0000

Add movies to backup-mobile script

Diffstat:
Mscripts/backup-mobile | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/scripts/backup-mobile b/scripts/backup-mobile @@ -2,6 +2,7 @@ readonly DCIM="${HOME}/storage/dcim/" readonly PICTURES="${HOME}/storage/pictures/" +readonly MOVIES="${HOME}/storage/movies/" readonly DOWNLOADS="${HOME}/storage/downloads/" if [ "$(uname -o)" != "Android" ]; then @@ -29,6 +30,15 @@ if [ -d "${PICTURES}" ]; then fi fi +if [ -d "${MOVIES}" ]; then + printf "backing up %s\n" "${MOVIES}" + + rsync -av --mkpath "${MOVIES}" "dwrz@${host}:/home/dwrz/mobile/movies/" + if [ "$?" -eq 0 ]; then + rm -rf "${MOVIES}" + fi +fi + if [ -d "${DOWNLOADS}" ]; then printf "backing up %s\n" "${DOWNLOADS}"