Creating a backup script for specific files in terminal

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am racking my brain trying to figure out how I would create a script to automatically backup specific files with the names public_html and wp-content, i can make a script to do this but when i try and also backup wp-config.php it doesnt work



any assistance?










share|improve this question



















  • 3




    Please edit and add your script as well as the error message(s) you received using the formatting tools.
    – dessert
    Feb 15 at 23:11






  • 1




    As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
    – richbl
    Feb 15 at 23:17















up vote
0
down vote

favorite












I am racking my brain trying to figure out how I would create a script to automatically backup specific files with the names public_html and wp-content, i can make a script to do this but when i try and also backup wp-config.php it doesnt work



any assistance?










share|improve this question



















  • 3




    Please edit and add your script as well as the error message(s) you received using the formatting tools.
    – dessert
    Feb 15 at 23:11






  • 1




    As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
    – richbl
    Feb 15 at 23:17













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am racking my brain trying to figure out how I would create a script to automatically backup specific files with the names public_html and wp-content, i can make a script to do this but when i try and also backup wp-config.php it doesnt work



any assistance?










share|improve this question















I am racking my brain trying to figure out how I would create a script to automatically backup specific files with the names public_html and wp-content, i can make a script to do this but when i try and also backup wp-config.php it doesnt work



any assistance?







command-line bash scripts wordpress kali-linux-tools






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 15 at 23:12









dessert

20k55795




20k55795










asked Feb 15 at 23:08









user

1




1







  • 3




    Please edit and add your script as well as the error message(s) you received using the formatting tools.
    – dessert
    Feb 15 at 23:11






  • 1




    As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
    – richbl
    Feb 15 at 23:17













  • 3




    Please edit and add your script as well as the error message(s) you received using the formatting tools.
    – dessert
    Feb 15 at 23:11






  • 1




    As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
    – richbl
    Feb 15 at 23:17








3




3




Please edit and add your script as well as the error message(s) you received using the formatting tools.
– dessert
Feb 15 at 23:11




Please edit and add your script as well as the error message(s) you received using the formatting tools.
– dessert
Feb 15 at 23:11




1




1




As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
– richbl
Feb 15 at 23:17





As this question doesn't appear to have anything to do with Ubuntu, I'd suggest you ask over on Stack Overflow (and type in the bash keyword to limit query results)
– richbl
Feb 15 at 23:17
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006624%2fcreating-a-backup-script-for-specific-files-in-terminal%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006624%2fcreating-a-backup-script-for-specific-files-in-terminal%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491