Excluding a directory while doing zip in linux
1) If you want to exclude a single directory.
tar -cvf /home/Virtualhosts/foostor.zip /home/Virtualhosts/foo --exclude "/home/Virtualhosts/foo/yourdirectory"
2) If you want to exclude multiple directories .
tar -cvf /home/Virtualhosts/foostor.zip /home/Virtualhosts/foo --exclude "/home/Virtualhosts/foo/yourdirectory1" --exclude "/home/Virtualhosts/foo/yourdirectory2" --exclude "/home/Virtualhosts/foo/yourdirectory3"
Labels: exclude zip linux, linux, tar linux, zip linux
posted by adityachandra @ 1:19 PM,
Post a Comment