image

Attic to NAS

[<Back>] [<Edit>]

Clears Attic space and move files to NAS

#!/bin/sh
PATH="/bin:/usr/bin:/sbin:/usr/sbin"

    mkdir /Volumes/Avid_PROJECTS
    mount_avidfs -U credentials -g WORKGROUP PHILOMN2FC:Avid_PROJECTS /Volumes/Avid_PROJECTS 2> /dev/null
    AvidMount="/Volumes/Avid_PROJECTS"
    errMnt1=0;

##### Actual Copy
rsync -vru --progress -b --backup-dir=Attic_Snapshots --remove-source-files --suffix="$(eval date +_%Y-%m-%d-TIME-%H%M)" $AvidMount/"Unity Attic"/ -e ssh user@NasServer:/Path

##### Clear Unity Attic Might want to leave folder structure
rm -rf $AvidMount/"Unity Attic"

umount $AvidMount
exit 1




By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu