new script for video folder backups
This commit is contained in:
parent
136b12bddf
commit
f89d75fe88
1 changed files with 11 additions and 0 deletions
11
scripts/server_bin/video_backup.sh
Normal file
11
scripts/server_bin/video_backup.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
#this script backup/syncs the video folder
|
||||
|
||||
sudo mkdir /mnt/vid_bak
|
||||
#mount the drive
|
||||
sudo mount /dev/disk/by-uuid/f9912d9f-7ce2-4a1a-ab8c-2206d431812c /mnt/vid_bak
|
||||
|
||||
#rsync
|
||||
sudo rsync --one-file-system --delete -havP --exclude *converted* --exclude .Trash* ~/Videos/ /mnt/vid_bak/Videos
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue