Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tar cvf /tmp/myfile.tar -C /usr/mysrcdir --exclude-from=- . << EOF
- data/*.log
- jobs/**/builds/*
- EOF
- # include specific files
- tar cvzf /tmp/gosa.tgz -C / --files-from=- << EOF
- /etc/ldap/schema/gosa/
- /usr/share/gosa/
- /etc/gosa
- EOF
- # update specific files (no compressed tar)
- tar rvf /tmp/gosa.tar -C / --files-from=- << EOF
- /etc/ldap/slapd.d
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement