Ok I just tried the following code and it worked! So it must be the date part that is off:
Code:
tar -cWPpf /hsphere/local/home/MYUSERNAME/backups/web-backup.tar.gz /hsphere/local/home/MYUSERNAME/container.MYDOMAIN.net/wp-content/
EDIT: I did a bit more research and messing around and found that the % sign is interpreted as a new line unless you escape it with a backslash. So this now works:
Code:
tar -cWPpf /hsphere/local/home/MYUSERNAME/backups/$(date +\%Y\%m\%d).web-backup.tar.gz /hsphere/local/home/MYUSERNAME/container.MYDOMAIN.net/wp-content/
Bookmarks