Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Why are all files sent and not just those that are needed?
cd /var/www/www-root/data/www/site.ru/files/ && find . -mtime -6 -print | tar --null --files-from=/dev/stdin -cf - | ssh [email protected] tar -xf - -C /tmp/
ls | wc -l
2303
Answer the question
In order to leave comments, you need to log in
In a command that is just a search -print0
in a command that packs -print
, while y tar
is still specified --null
This is how it works:
find /var/www/www-root/data/www/site.ru/files/ -mtime -6 | tar -cf - -T - | ssh [email protected] tar -xf - -C /tmp/
-print0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question