Skip Navigation
Help with backup solution
  • What you want is a bash script and a cron job that calls it. Most of what you need is likely already installed for you.

    "crontab -e" will pull up your crontab editor. Check out "man crontab" first to get an idea of the syntax...it looks complicated at first but it's actually really easy once you get the hang of it.

    Your script will call tar to create your backup archive. You'll need the path to the folder where your files to backup are and then something like: tar -C PATH_TO_FILES -czf PATH_AND_NAME_OF_BACKUP.tgz .

    That last dot tells it to tar up everything in the current folder. You can also use backticks to call programs in line....like date (man date). So if your server software lives in /opt/server and your config files you want to backup are in /opt/server/conf and you want to store the backups in /home/backups you could do something like:

    tar -C /opt/server/conf -czf /home/backups/server_bkup.`date +%Y%m%d`.tgz .
    

    Which would call tar, tell it to change directory (-C) to /opt/server/conf and then create (-c) +gzip (-z) into file (-f) /home/backups/blah.tgz everything in the new current directory (.)

    I don't know if that's what you're looking for but that would be the easiest way to do it...sorry for potato formatting but I'm on mobile

  • Loving liftoff!!

    One small issue though. Trim whitespace from user/pass before submit. Spent way too long guessing what my password was before I realized autocomplete had added a space after my username.

    Other than that I'm loving it so far as a former Boost user 😁

    0
    news.yahoo.com Robert F. Kennedy Jr. Says Russia Acted In 'Good Faith' In Ukraine Invasion

    "I think we’re the ones who have not been acting in good faith," the 2024 Democratic presidential candidate said.

    Robert F. Kennedy Jr. Says Russia Acted In 'Good Faith' In Ukraine Invasion

    Robert F. Kennedy Jr. said Wednesday he believes Russia acted in “good faith” amid the Kremlin’s invasion of Ukraine, adding the U.S., in fact, bore heavy responsibility for the ongoing war.

    50
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SC
    sczlbutt @lemmy.pubsub.fun
    Posts 2
    Comments 27