I want to backup the directories as below:
/usr
/lib
/etc
/lib64
/boot
/sbin
/bin
Is there a simply to do so?
What I need is to backup these directories and I can restore them whenever I need.
I just knew about dd
but it seems that dd
is to backup a whole disk.
DD is risky command and not recommended: https://unix.stackexchange.com/a/141037/165083
You could use rsync instead of it but im using something like this for making backup and uploading it to AWS s3:
Please change
<directory>
:)