Sometimes we have a choice of only backing up some of the selected files from an
application or some other very crucial files. Below is how I do it in a real quick way:
cat >> /etc/bkup.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf/httpd.global.conf
/usr/local/apache/conf/httpd.mod_jk.conf
/usr/local/apache/conf/vhosts/*
/usr/local/apache/conf/httpd.vhosts.include.conf
/usr/local/apache/conf/httpd.ssl.conf
EOF
Then I run tar command with -T flag pointing to the file which contains
the list. In my case it is /etc/bkup.conf
tar -cjf bkup-WebConfig-`date +%Y-%m-%d`.tar.bz2 -T /etc/bkup.conf
And you have your selective backup ready!
Thanks/-
DEBAJIT
Subscribe to:
Post Comments (Atom)
🔭 First Impression: Exploring Grafana Mimir ... After Years with Thanos! Not an observability( OE ) purist, but I do appreci...
-
Being in Operations its quite common to face piled up backlog on a regular basis, but at the same time to mitigate the same is even more fun...
-
I have been having a great company with some of the very talented NCG’s ( New College Hires/ Grads ) last ~2yrs. I work for Intuit ...
-
This is NOT a post about how to 'Tie a Tie'. Rather , just an effort to remember a few fundamentals before we strike a convers...
No comments:
Post a Comment