3 ms·
This was one I used to backup all websites in a folder: find . -mindepth 1 -maxdepth 1 -type d | awk 'BEGIN {FS="./"}; {print $2}' | xargs -d '\n' tar czf ba
by zaptheimpaler 15y ago
This was one I used to backup all websites in a folder:
find . -mindepth 1 -maxdepth 1 -type d | awk 'BEGIN {FS="./"}; {print $2}' | xargs -d '\n' tar czf backup1.tar
Note that you'll have to change $2 to the correct column number for the name field depending on your output.
- Domenic_S 15y agoWhy not just cp the parent directory?