Hi,

I currently use a program called copywhiz on windows that backs up any files or directories created after a certain date to a usb hard drive and runs once a day.

I want to transition fully to Linux. Is there any easy to use software that works on Linux that can do this?

P.S. I have tried creating a bash script to do this but for some reason it has trouble with the date part. So a software solution would be prefered.

  • Yote.zip@pawb.social
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 year ago

    I’m curious to know more about your “certain date” requirement - this sounds like it might be an XY problem. As for general advanced backup programs, I have two easy recommendations that are similar in featureset:

    The most important parts of real backup software IMO is the ability to compress your backups, version your files with rolling/pruning snapshots, and version your files efficiently with only deltas between them taking extra space. You can also encrypt your backup if you want to store it with a remote party, or run integrity checks to check for bitrot.

    • hallettj@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yeah, with those options it’s easier to back up your whole home directory, and then daily backups only take a minute or so and a small amount of additional space to back up what’s changed since the day before.

  • naeap@sopuli.xyz
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    I’m using borg with vorta as a front-end, which seems to work quite well, with different possible backup targets

    • NotAnArdvark@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      2nd’ing Vorta+Borg. It’s also really easy to find off-site backup options compatible with Borg. I’m using BorgBase, which offers ridiculously cheap storage, the choice of EU and US destination, and supports the development of both Vorta and Borg.

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Pika Backup. It’s very easy to use, you select the directories you want to backup and the ones you want to exclude, then your job is over. Every time you ask it to backup it will add the new and changed files to the backup without deleting the old ones. This way the backups only grow with what’s changed.

    You can also ask Pika to schedule automatic backups, or you can ask for one manually if the USB HDD is not plugged in all the time.

  • Minty95@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Use timeshift, install it, just chose where you want the backups to be installed, preferably a second HD or SD Flash. Chose when like once a day, week at start up for instance and forget it. Then if you screw up your Linux, just start in console mode, timeshift --restore and five mins later your up and running.

    If you want just your data to be copied, then Cron

    Both are standard Linux programs, often already installed depending on what Linux you have

  • therealbabyshell@lemmy.mlOP
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    UPDATE: The specific date thing is because every 6 months i backup my nas to LTO tape so this backup is anything that isn’t currently on tape just in case the NAS dies between backups.

    • Holzkohlen@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      You said you run it daily in the post, but now it’s every 6 months. You really should be more specific. I for one don’t understand why you can’t just do rsync -au /source /target

  • Kongar@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I’m pretty sure there are lots of options that work great. I personally just use rsync-but I know the command line is scary for a lot of people making the transition. There are lots of options like timeshift that basically put a gui wrapper around rsync. I’ve seen a lot of love for borg as well - maybe try one of those two.

    I feel backups are personal and it’s hard to get a “just do this instruction”. You’ll probably have to pick a product, and then do some homework to see if it can do what you want. This is further complicated by the distro you use - or more specifically if your distro uses btrfs. Some people use a backup as a sort of snapshot, and btrfs is more full featured than ext in that regard.

    Good luck!

  • TheCaconym [any]@hexbear.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    If the aim is simply to mirror an existing directory, including mirroring suppression/deletions/new files/edits, and only copying what has changed (which is what I suspect you were trying to emulate with the “created after a certain date” thing), just do:

    rsync -avh -P /path/to/source/ /path/to/destination
    

    If the aim is to copy all files created since, say, three days ago, but not to update existing files or to remove files that have been removed from your source (which is what you described):

    rsync -avh -P --ignore-existing --files-from=<(find -L /path/to/source -ctime -3 -exec basename {} \;) /path/to/source/ /path/to/destination
    

    Edit: lemmy is html encoding my “lesser than” symbol in the second command above; replace accordingly

  • KᑌᔕᕼIᗩ@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    I use a service called iCloud which has both cloud storage and local backup support built into it. Not free or open source but no cloud platform fully is. It’s also really cheap for students.