Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Using tar to archive files



Hi Dave.

Seems to work for me. Maybe an issue with the way your Archive Manager is displaying things?

ed@??:~/ # Make something to archive
ed@??:~/ mkdir archiveme
ed@??:~/ mkdir archiveme/empty
ed@?? :~/ mkdir archiveme/ignoreme
ed@??:~/ mkdir archiveme/full
ed@??:~/ touch archiveme/full/myfile

ed@??:~/ # Make somewhere to work from that isn't right above the directory we'll archive
ed@??:~/ mkdir workingdir
ed@??:~/ cd workingdir/

ed@??:~/workingdir # Make the archive
ed@??:~/workingdir tar -cvzf archive.tgz -C /home/ed/archiveme/ . --exclude ignoreme

ed@??:~/workingdir # Unpack it and see what we've got
ed@??:~/workingdir tar zxvf archive.tgz
ed@??:~/workingdir ls
archive.tgz empty  full
Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links