We all know this. We need to do a specific task and with the help of the internet we find a specific tool alongside command line parameters to do the job right from the shell.

What is a good way of collecting/documenting these snippets on your own for future reference and use? Just a text file in the home folder?

  • Random Dent@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 hours ago

    I’m interested in the rsync part for backups, do you have a good guide or video for that? Thanks

    I don’t really have a guide or anything for it to hand, but essentially what that alias is doing is:

    • rsync = running rsync
    • --ignore-existing = as you might have guessed, this tells rsync not to copy a file if it already exists at the destination.
    • -rav = additional arguments. r = recursive, IE also copy subfolders. a = archive mode, preserves things like symlinks etc. and v = verbose, just tells you extra info about what’s going on.

    So with that alias, I can just type rs [target folder] [destination folder] and it’ll copy it across exactly as it is, ignore anything that’s already there and tell me precisely what it’s doing.

    • Cris16228@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      45 minutes ago

      What if I added my own local server in dolphin? Can I use it’s path to sync a local (Linux) folder to the server?