this post was submitted on 15 Jan 2025
34 points (97.2% liked)

Linux

49045 readers
681 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] Cris16228@lemmy.today 1 points 2 days ago* (last edited 2 days ago) (1 children)

I prefer my -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --concurrent-fragments 12 --throttled-rate 100K -o "%(uploader)s/%(playlist_title|)s/%(playlist_index&{} - |)s%(title)s.%(ext)s"

Since it saves it based on the channel and if is a playlist, it makes a folder based in that

  • Channel
    • Playlist (if is a playlist, otherwise save inside channel)
      • - title.extension (if not a playlist, it doesn't add the -

Not sure if --concurrent-fragments 12 --throttled-rate 100K does actually something.

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

[–] CrabAndBroom@lemmy.ml 2 points 2 days ago* (last edited 2 days ago) (1 children)

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 1 points 2 days ago (1 children)

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?

[–] CrabAndBroom@lemmy.ml 1 points 1 day ago

Hmm, I have no idea to be honest! I just back up to an external drive. It does look like you can rsync to anything you have SSH access to, but I've never tried it personally.