Hey, we've been working on a script here for our daily back up which includes:
tar -czf Destination /Users
scp Source Destination
rm Source
The obvious problem with this is that it is tar.gzing to the source machine and then sending to the server and certain machines are running out of memory (inc. mine since I have a lot of AACs).
What I would like is:
tar -czf user@IP:/Volumes/BackUp/backup.tar.gz /Users
I have been told that I can get something like that to work using standard output with a pipe and ssh command but I can't for the life of me get it to work.
tar -czf Destination /Users
scp Source Destination
rm Source
The obvious problem with this is that it is tar.gzing to the source machine and then sending to the server and certain machines are running out of memory (inc. mine since I have a lot of AACs).
What I would like is:
tar -czf user@IP:/Volumes/BackUp/backup.tar.gz /Users
I have been told that I can get something like that to work using standard output with a pipe and ssh command but I can't for the life of me get it to work.