image

Avid Project auto archival with versioning

[<Back>] [<Edit>]

Avid Project auto archival with versioning

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

## Mount ISIS volumes
mount_AvidUnityISIS -U <username>:<password> -g <workgroup> <ISIS_Name>:<VolName> /Volumes/<VolName>
sleep 2
mount_AvidUnityISIS -U <username>:<password> -g <workgroup> <ISIS_Name>:<VolName> /Volumes/vAttic


##### Copy ISIS Project to vAttic
echo "Copy ISIS to vAttic"
find /Volumes/<VolName>/"Unity Attic"/ -type f -exec rm -rf '{}' \;
rsync -avru --include '*/' --include '*.avb' --include '*.avc' --exclude '*' --progress --size-only -b --backup-dir=/Volumes/vAttic/Project_Mirror_Version --suffix="$(eval date +_%Y%m%d-%H%M)" --delete-after /Volumes/<VolName>/ /Volumes/vAttic/Project_Mirror
find /Volumes/<VolName>/ -type d -empty -delete
find /Volumes/vAttic/Project_Mirror_Version ! \( -name "*.avb*" -o -name "*.avc*" \) -type f -exec rm -rf {} \;

#Local Filesystem
rsync -aru --include '*/' --include '*.avb' --include '*.avc' --exclude '*' --max-delete=50 /Volumes/vAttic/Project_Mirror/ /Volumes/<localDrive>/Project_Mirror

umount -f /Volumes/PROJECTS
umount -f /Volumes/vAttic

fi
exit 1


By: Ted





 
Instagram Stats
pinoy
my Kung Fu