Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backing up with tar 3

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
0
0
US
Hi,

I want to put all me files in 1 tar file, but its giving me this error? I want to back up all files and diretories in my public_html folder.

# tar zcvf backup2.28.03.tar
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.

This call me a coward and doesn't work, what am I doing wrong?
 

You're not telling it what to back up. You need to specify files and directory after your command.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
agree...you must tell it a target file, and then what to tar into it..

tar zcvf [target file] [directories/files]
 
Also, you should name your tar .tar.gz or .tgz because you are compressing using zip.

You should also be aware that tar has a 2gb file limitation on a filesystem, or at least it did.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top