{"id":2379,"date":"2017-12-08T08:31:51","date_gmt":"2017-12-08T08:31:51","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2379"},"modified":"2022-12-23T05:34:07","modified_gmt":"2022-12-23T05:34:07","slug":"how-to-restore-the-dump-file-using-shell-scripting","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-restore-the-dump-file-using-shell-scripting\/","title":{"rendered":"Shell Bash Scripting: Assignment &#038; Excercise \u2013 18"},"content":{"rendered":"<p><strong>scmuser created the topic: how to restore the dump file using shell scripting<\/strong><\/p>\n<p>I have created a script file to dump the application files using the following script<\/p>\n<p>Code<br \/>\n=============<br \/>\n#!\/bin\/bash<br \/>\n#Full Day Backup Script<br \/>\n#application folders backup<\/p>\n<p>now=$(date +&#8221;%d-%m-%Y&#8221;)<br \/>\n#use 1 instead of 0 which is incremental backup<br \/>\ndump -0f $now \/var\/www\/html\/*<br \/>\n=============<\/p>\n<p>using this we can successfully dumped the application files.<\/p>\n<p>Now i want to restore the dumpfile<\/p>\n<p>How can i restore using shell script?<\/p>\n<p>please help<\/p>\n<p>Thanx in advance<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmuser created the topic: how to restore the dump file using shell scripting I have created a script file to dump the application files using the following script Code ============= #!\/bin\/bash #Full Day Backup Script #application folders backup now=$(date +&#8221;%d-%m-%Y&#8221;) #use 1 instead of 0 which is incremental backup dump -0f $now \/var\/www\/html\/* ============= using&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[454],"tags":[138],"class_list":["post-2379","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2379"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2379\/revisions"}],"predecessor-version":[{"id":32405,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2379\/revisions\/32405"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}