On 04/03/2025 04:08, ToddAndMargo via users wrote:

It looks like if I wanted to exclude "folder3" and
all its sub folders, the run line would look like:

/home/ftp/mysite/folder3

cd /home/ftp
tar -czvf mysite.tar.gz mysite --exclude='file3' --exclude='folder3'

Would it also work with :
tar -czvf mysite.tar.gz /home/ftp/mysite --exclude='file3' -- exclude='folder3'


Use absolute or relative paths carefully. The path in --exclude should match how the files are being added to the archive. For example, if you're running the command from /home/ftp/mysite, you might need to use relative paths like --exclude='./folder3'


--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to