This is what i tried for a test backup. You will probably laugh when you read it, but I'm VERY new at this. Could someone take a look and tell me why I'm getting the errors i'm getting please?
Code:
#!/bin/bash
FILE="testbackup`date +%Y.%m.%d.%H.%M`.tgz"
FOLDER="/home/justin/"
tar czf $FOLDER > $FILE
scp $FILE jvore@10.17.4.235:/home/jvore/backups
Returns
Code:
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
testbackup2012.11.28.15.57.tg 100% 0 0.0KB/s 00:00
Any help would be appreciated!
Bookmarks