Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Following on the heels of ssh(1) yesterday, today's #FreeSoftwareAdvent is rsync(1).

Uncategorized
1 1 4
  • Following on the heels of ssh(1) yesterday, today's is rsync(1).

    It's one of the key elements in my podcast listening (more on that to come later this month), where my podcatcher pulls down podcasts into a backlog tree structure, and I rsync the whole thing to my phone for listening. It also undergirds my blog deployment, building in Nikola (still gotta find some time to switch that to my custom Makefile driven build process) and then rsync'ing the output/ tree up to my web-server.

    And last night our teen wanted our family photo website content's pictures for a school project, so I was able to rsync the latest copy of them to a backup USB drive that he could browse offline.

    It's reliable and does a particular job (keeping two directory trees in sync) very well. Yes, ZFS send/receive is more efficient if both sides support it and they're whole datasets, but that's not always the case.

    Also, since I use bash as my shell, the "^" substitution makes it easy to issue something like

    $ rsync -n -avr $SRC $DEST

    and if it looks good, use

    $ ^-n

    to remove the dry-run flag and run it for real.

  • stefano@mastodon.bsd.cafeundefined stefano@mastodon.bsd.cafe shared this topic on

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    8 Views
    Today in #FreeSoftwareAdvent it's pandoc(1).I author most of my prose in raw HTML (something I've done since the 90s, stemming from my appreciation of WordPerfect's "Reveal Codes" functionality), or occasionally I'll use Markdown. It's nice to just hand the file off to pandoc and get some other format (PDF, Word, RTF, plaintext, whatever).Is the output flashy? Not really. Is it what I would get if I hand-crafted the desired output document? No. But does it let me lazily do conversions with basically zero effort? Yep!
  • 0 Votes
    1 Posts
    11 Views
    well today's #FreeSoftwareAdvent is a bit bittersweet.Back at the beginning of the month, I plotted all the projects on my remind(1) calendar, grouping various categories together. Two days ago, lynx¹, yesterday was Dillo², and today it was supposed to be #Firefox. Yet this week has been full of sad Firefox news, with them ignoring users' desires to keep AI rubbish out of the browser (or at least relegated to an optional plugin)The browser that I started using as Netscape, grew to be Communicator, that kinda became Phoenix, then shed the non-browser functions off to Thunderbird (already got mentioned³) and became Firefox. Despite the rise of Chromium/Chrome, I still use Firefox as my daily driver web-browser for the modern web (rather than the *pleasant* web where lynx & Dillo serve me much better).What used to be a "User Agent" has become something that no longer puts the *user* first. 😢 So in this time of wishes and gifts, I wish that the Firefox leadership team would take a strong look at what they're doing and change their course.⸻¹ https://mastodon.bsd.cafe/@gumnos/115735221496156078² https://mastodon.bsd.cafe/@gumnos/115740808963678498³ https://mastodon.bsd.cafe/@gumnos/115684337296307283
  • 0 Votes
    1 Posts
    5 Views
    Today in #FreeSoftwareAdvent it's ZFS. It gives me• all in one volume management (no volume-groups and logical volumes and manually resizing partitions on those logical volumes with a dozen different commands, no playing the "oof, need more space on partition A and have too much free space on partition B, back up all the files, nuke both, shuffle partition-sizes/locations, restore the files" dance)• transparent file compression• transparent volume encryption• fast and effectively free snapshots and clones (you start paying the cost if they diverge or deleting files that remain in a snapshot, but that's to be expected)• same-disk redundancy with copies=2 to help prevent against bitrot, and multi-disk redundancy with effectively zero effort• the CoW means no need for fsck(8) horribly slowing my boots or finding orphaned fragments of files and shunting them into a lost+found/ directory (my biggest frustration with OpenBSD's FFS2) in the event of an abrupt power loss• efficient send/receive (beats rsync hands down in terms of speed)• fine-grained quota/reservation control• utilities make scripting easy with output-formatting options• cross-OS support in a way that very few other filesystems provide (other than FAT 😆)I'm sure there are additional reasons that didn't percolate to the top of my brain, but it's just so much more pleasant than any other disk management I've done on any OS.
  • 0 Votes
    1 Posts
    6 Views
    Today's follow-up #FreeSoftwareAdvent entry is vi/vim.Which I use depends on the situation. Classic vi/nvi tends to be lighter weight and start faster, while vim offers extra features that I find particularly useful). I usually just type `vi` which gets me `vi` on OpenBSD, `nvi` on FreeBSD, and `vim` (or `vim-tiny`) on most flavors of Linux. If I specifically want vim features, I'll invoke it as such directly.I could go on for ages about favorite features, but a select few:• the ability to keep my hands on the home row and not use a mouse is helpful for preventing RSI symptoms• it's a language¹ of editing, involving counts, verbs/commands, and objects/motions, so I can express my editing *intent* and then use the period command to re-issue that same editing *intent*• the :global or :substitute commands can make massive-yet-precise edits across huge files• the :*do commands extend that power across multiple files, allowing me to precisely edit millions of lines across thousands of files with targeted precision• it's ubiquitous—even as some Linux distros have started removing ed(1) from the base installs , relegating it to packages, I can always type `vi` on any Unix-like/POSIX system and be editing with a powerful editor. And with builds for Windows and my phone, I can use it everywhere. No need to install anything• they work just fine over a SSH connection without a GUI, and use minimal resources so they work even on that old hardware from the 90s.⸻¹ https://gist.github.com/nifl/1178878