-
Notifications
You must be signed in to change notification settings - Fork 2
/
send_uploads.sh
executable file
·5 lines (4 loc) · 990 Bytes
/
send_uploads.sh
1
2
3
4
5
#!/bin/bash
start=`date +%s`
rsync -arvz --exclude='$RECYCLE.BIN' --exclude='$Recycle.Bin' --exclude='.AppleDB' --exclude='.AppleDesktop' --exclude='.AppleDouble' --exclude='.com.apple.timemachine.supported' --exclude='.dbfseventsd' --exclude='.DocumentRevisions-V100*' --exclude='.DS_Store' --exclude='.fseventsd' --exclude='.PKInstallSandboxManager' --exclude='.Spotlight*' --exclude='.SymAV*' --exclude='.symSchedScanLockxz' --exclude='.TemporaryItems' --exclude='.Trash*' --exclude='.vol' --exclude='.VolumeIcon.icns' --exclude='Desktop DB' --exclude='Desktop DF' --exclude='hiberfil.sys' --exclude='lost+found' --exclude='Network Trash Folder' --exclude='pagefile.sys' --exclude='Recycled' --exclude='RECYCLER' --exclude='System Volume Information' --exclude='Temporary Items' --exclude='Thumbs.db' ./wordpress/wp-content/uploads/ [email protected]:/home/wpe-user/sites/WPEENVNAMEDEV/wp-content/uploads/
echo "Duration: $((($(date +%s)-$start)/60)) minutes"