confusedpuppy

joined 2 years ago

My friend invited me for a night out with her kinda partner and a few of her friends for a pride party. Had such a fun night. My friend says I am now an honorary lesbian.

I created my own script/tool using rsync to handle backups and transferring data.

My needs are quite smaller with just a computer and two Raspberry Pi's but I found rsync to be really useful overall.

My backup strategy is to make a complete backup on the local device (Computer / RPi4 / RPi5) then copy all those backups to a Storage partition on my computer, then make a whole backup from the partition to an externally attached SSD.

The RPi's both use docker/podman containers so I make sure any persistent data is in mounted directories. I usually stop all containers before performing a backup, especially things with databases.

Everything in the docker containers is either hit or miss when it comes to restoring. The simple docker images restore as it they were untouched and will launch like nothing happened. I have a PieFed instance that must be rebuilt after restoring a backup. Since PieFed's persistent data is in mount points, everything works perfectly after a fresh build.

I can send a link to my rsync tool if that's any interest to anyone. I've found it super useful for backups and minimizes so much headache for myself when it comes to transferring files between different network connected devices.

[–] confusedpuppy@lemmy.dbzer0.com 2 points 6 days ago (1 children)

Aah, I just noticed that they were eating all the beans sprouting in my garden. I had some beans from last year that went moldy on the bottom of the container because I didn't let them dry properly. I just threw a bunch of good ones into the garden and lawn randomly.

Also, I don't remember buying 4 kilograms of clover seeds but I found them in a bin in my closet. I've randomly tossed those out into the lawn and garden to attract more pollinators in general.

I've also done the same with some native chickweed seeds too. I'm secretly at war with everyone's silly, plain, green lawns.

I made a garden with a bunch of seeds I picked from a nearby hiking trail and the bunnies seem to really enjoy whatever is growing in there too. They at least have some variety.

Maybe it's something sightly outside no js/ccs/html but I am curious if there are any super minimal social media sites.

I want to do something locally within my town and it would be nice to host something simple and tiny with my raspberry pi as the server.

I'm assuming bulletin boards are quite minimal in comparison to other types of social media but I've never been a fan of how they handle previous replies with those boxed quotes.

I've also been nostalgic for irc lately. Everything on the internet these days has become overwhelming. Over the past 1.5 years I've been turning to simplicity and it's a craving I that's hard to ignore.

[–] confusedpuppy@lemmy.dbzer0.com 3 points 1 week ago (3 children)

I am able to walk around this one without it hopping away. I just have to give it a good 3 meters of space as well as not looking in it's general direction as I move around.

I've been secretly spreading clover seeds and beans in certain areas of the lawn to keep the bunnies happy and coming back.

127
Butt (lemmy.dbzer0.com)
submitted 1 week ago* (last edited 1 week ago) by confusedpuppy@lemmy.dbzer0.com to c/bun_alert_system@lemmy.sdf.org
 

Bonus claw

Am I numb or am I exhausted? Maybe I'll find out after another nap.

I have a computer and 3 devices I wanted to transfer files between but every available solution was either too awkward which made things annoying, or too bulky with more than what I needed.

I ended up writing a long script (around 1000 lines but I'm generous with spacing so I can read my own code easily) using rsync to deal with transferring files and whole directories with a single command. I can even chain together multiple rsync commands back to back so that I can quickly transfer multiple files or directories in one command. Instead of trying to refer to a wall of text full of rsync commands, I can make something like this:

alias rtPHONEmedia="doas rtransfer /home/dell-pc/.sync/phone/.sync-phone_02_playlists /home/dell-pc/.sync/phone/.sync-phone_03_arbeit /home/dell-pc/.sync/phone/.sync-phone_04_albums /home/dell-pc/.sync/phone/.sync-phone_05_soulseek /home/dell-pc/.sync/phone/.sync-phone_06_youtube"

This will copy everything from a specific folders on my phone, and store them neatly organized into my storage partition on my computer SSD. This also includes all the necessary information including SSH username, address and ID keys.

I can then run alias rtARCHIVEfull="doas rtransfer /home/dell-pc/.sync/computer/.sync-computer_01_archive-full" to quickly copy that storage partition on my computer to my external backup SSD.

I use it so often. It's especially nice because I can work on a file on my computer and quickly update the file to the remote address location, putting it directly where I need it to be immediately.

 
[–] confusedpuppy@lemmy.dbzer0.com 60 points 1 week ago (5 children)

Politics is just a bunch of old men helicoptering at each other while the rest of us watch, suffer and die.

I started self-hosting as a hobby and while I enjoy it, I was getting frustrated with file transfers between my computer, phone and two raspberry pi's. Since I was already using rsync, I created a tool for myself to help sort rsync commands into sortable files.

I can now lump together those files into a single command and run several rsync commands in one go.

It's definitely saved me some sanity by not having to refer to a wall of text full of rsync aliases.

I posted it on codeberg.

It is random code on the internet and it involves file transfers so if anyone uses it, those are the risks unless you care to read the code itself.

 

Terror cleared the skyline and anger clouded judgement, So they spent a thousand nighttimes in the desert fighting something, That they couldn’t find, that made it something that they couldn’t fight, Left us lamenting all the wrongs that they couldn’t right, This is for the second time, we’ve been here before, From Vietnam to Saddam, we always needing a war, Neo-conservatives rose up like Viet Cong, Their fingers on the trigger we won’t be here for long, They killed MLK and they named a day after him, They killed JFK and named an airport after him, Some guy shot a monster called Reagan so he could bone, A girl named Jodie Foster, if only he’d known, We tested nukes in the atmosphere, the sea and the dirt, And they tested all these missiles just to see if they worked, Now France got ‘em, Russia got ‘em, India and Pakistan, Korea want ‘em, States want ‘em pointed at the Taliban, Iran and Afghanistan, sands of the Arab lands, Orders from portable commands in armored caravans, Internet, 3g cellular phones, Serial killers built mini-cells in their homes, And we had Manson, Bundy, Gacy, Son of Sam, Macarena, superman, chicken dance, running man, Generation X and Generation Y, And the generation next will degenerate and die, Cos we got holes in the Ozone that we put there ourselves, Now the poles are a no-go, earths cooking itself, And we can’t look at ourselves so we got saline, botox, Eighteen, fake tits, nineteen detox, Don’t stop, get it, get it, can’t afford it get it credit, Buy it, spend it, try it, getting fat? Then you better shed it, Ab-Swing, Blue Blocker, Tupac or Biggie, East coast, west coast, Fat Joe or Fifty, Thatcher the shifty iron lady, Tony Blair, A princess died, some say cos she got Dodi there, Whitlam, Keating, Hawke and a promise, Of no children in poverty, wish that could have been honest, We had Abbot and Costello, right wing overlords, Promises and children, they threw ‘em both overboard,

Overwrought refugees thrown to a group home, Or jailed for the crime of looking for a new home, Elvis died, Hendrix died, Lennon died, genocide, In Africa, Serbia, Cambodia, pesticides, Bio-toxins, chemical warfare, All’s fair in love and war, more work for the pallbearer, More terror, more unjust search and seizures, A tidal wave came and claimed the coast of Indonesia, Quakes in Iran, Japan and California, Greenhouse gas turned the world into a sauna, The trauma of mortars, martyrs, slaughters, Of partners, mourners, fathers and daughters, They chased us, caught us, numbered us to sort us, Raped us, scorned us, to break us they bought us, Third world kidneys for captains of industry, Uprising in the street, corruption in the ministry, A blowjob brought about the fall of a dynasty, And MP3’s saw the fall of an industry, Doubled population, halved accommodation, Carved up resources and we starved the poorer nations, Beirut, Chechnya, all hell, Broke loose, Berlin, nineteen eighty nine man, the wall fell, Cold war ended but that didn’t stop more shells, Waco lit up the sky like burning oil wells, A world laid waste with addiction, Tell Orwell truth’s always stranger than fiction, Big Brother’s on closed circuit TV and on cable, Reality’s now scripted, celebrity’s for sale, Jeopardy and jail, seized, deposed, Remedies and penalties for failed CEO’s.

We had the Enron collapse, and white-collar crime, Investors they were taxed, a dollar for a dime, The blue chip companies and blue-sky mines, We no longer choose sides we choose sidelines, Rich bleeding the kind, blind leading the blind, And history repeats, no competing with time, Gasses eating the minds of the vets that they bring home, The plague of Agent Orange, Gulf War Syndrome, Soldiers sent home, posttraumatic stress leave, STD’s cos the sleeve ain't sexy, AIDS shook the eighties, grim reaper with a bowling ball, Metallica, kill ‘em, let god scold ‘em all, The Guildford Four, Chicago Seven, Mumia, Mandela, Oceans Eleven, Half past twelve on Friday the Thirteenth, Dawn of the Dead a Nightmare On Elm Street, Weapons free environment, war zone, phone home, Melanoma grow as we soak in the ozone, Home-grown, Hydro, Cocaine, Nitro, Werewolf in London, American Psycho, Cyclones, bushfires, Bush firing Scuds, Baby boomers, Woodstock, what happened to the love? What happened to the cubs? They fed ‘em to the wolves, Set a trial for pedophiles, they let ‘em in the schools, Set ‘em on the students, turned ‘em on the kids, And everyone responsible should burn for what they did, And if they try to deny then an eye for an eye, The government and church on which we try to rely, Both rob us till it hurts chasing lie after lie, Like astronauts chasing a pie in the sky, They landed on the moon but can’t seem to return there, Makes some question if they ever really were there, And if they were there now and they looked back, Could we look them in the eye, could we look back?

Cos when we look back at what we have done, Can you believe what we have become? As we walk into the sun, Can you believe what we have become? As we walk into the sun

7
submitted 1 week ago* (last edited 1 week ago) by confusedpuppy@lemmy.dbzer0.com to c/antiwarmusic@feddit.org
 

I'm just a normal man I wouldn't hurt nothing at all But here we are

Our leaders have a plan I'd only kill if it's for them Now here we are

I drove in a car Flew in a plane To come to your house And kick your door in Now it's down to this It's just you and me I'll blow your fucking head off For my country I go to church and tithe Go to work in a suit and tie But this is war

I'm really not sure why But the TV says that you were wrong Now here we are

I drove in a car Flew in a plane To come to your house And kick your door in Now it's down to this It's just you and me I'll blow your fucking head off For my country

My feet hurt from the sand But still I march on gun in hand 'Cause this is war

This isn't what I planned I wanted to be so much more But this is war

I drove in a car Flew in a plane To come to your house And kick your door in Now it's down to this It's just you and me I'll blow your fucking head off For my country

 

Now, I don't know about you, but I don't think the primary purpose of your life, of my life and the entirety of the human race is just to blindly consume to support a failing economy and a faulty system. Forever and ever until we run out of every resource, and have to resort to blowing each other up to ensure our own survival

I don't think we're supposed to sit by idle, whilst we continue to use a long outdated system, that produces war, poverty, collusion, corruption, ruins our environment and threatens every aspect of our health, and does nothing but divide and segregate us

I don't think how much military equipment we are selling to other countries, how many hydrocarbons we're burning, how much money is being printed and exchanged, is a good measure of how healthy our society is

But I do think I can speak for everyone when I say We're sick of this shit!

[Drop] Time to mobilise Time to open eyes [Verse 1] We are not a quiet pocket of resistance This is real and we cannot afford to fail Act with, act with persistence This is real and we cannot afford to fail

[Rob Rolfe] “I am the established order Respect me and fear me”

[Rou Reynolds] Fuck you! We hold no respect And when tomorrow comes We’re gonna step on your head! Pig!

[Interlude: Band] Calm down! Calm down, mate! Calm the fuck down! Gandhi, mate, remember Gandhi

[Rou Reynolds] Alright, alright, I’m fine

[Verse 2: Chris Batten] “See, if we keep them silent Then they’ll resort to violence And that’s how we criminalise change” [Rou Reynolds] Oh, yabba dabba do one, son We don’t want your rules Who you fooling son? We’ve got all the tools We need to build a whole new system To correct these flaws

[Rory Clewlow] “Yeah, like what?”

[Rou Reynolds] I’ve already listed them

[Rory Clewlow] “You’re a communist! You’re a fucking utopianist!”

[Rou Reynolds] Ah, there come the emotive labels But their attempt just fails 'Cause man, we’re so far out your comfort zone

[Bridge] We stop, think, begin to revive We stop, think, begin to revive We stop, we think, we begin to revive We begin to revive Put the call out to the front line Get the message out to the contact squad Transmit emergency frequencies

Put the call out to the front line Get the message out to the contact squad Put the call out, put the call out, put the call out

Oh, the jigsaw starts to build Oh, and the jigsaw starts to build Piece by piece! Open their minds

[Outro] Transmit emergency frequencies

Open their minds

Transmit emergency frequencies

Emergency frequencies Emergency frequencies Emergency frequencies Emergency frequencies

I took sudo out of the examples and disabled it by default within the script. I still have a personal use for it.

I keep a local backup on each device then transfer that backup to my desktop. Rsync requires root access to transfer files or directories with certain attributes over ssh. Otherwise the backup copy to my desktop is incomplete.

Fortunately I already coded in a toggle for requesting root since Termux on Android has no root by default. I just won't note that in the readme file. That can be left for anyone who cares to read the code itself.

[–] confusedpuppy@lemmy.dbzer0.com 2 points 1 week ago* (last edited 1 week ago)

I use a lot of commands that either use the --delete option or require remote root access in order to preserve hard links and other attributes.

I didn't know that was an issue. I was going from my own limited experience with linux.

I already set an option to disable the root requirement at the beginning of the script. Simply changing the value to 0 will disable it and will let rsync display it's own errors.

What exactly makes it suspect so I know what I'm doing?

 

Ever since I started down the self-hosting rabbit hole one issue I've been constantly annoyed with is transferring files between machines. Especially files which I am currently working on and that I want to periodically transfer to a specific remote location.

Rsync has been my go to tool for file transfers and backups but I absolutely hate making commands for it. I was getting lost in a wall of text with all my rsync aliases.

The script I created helps me organize those commands by placing all the information for an rsync command into an easier to read dot-file. The script will read the dot-file, update the rsync command and run it. It's also set up to preview file transfers with rsync's dry run option. I've also added a few other features to make the script more flexible including being able to quickly backup a directory that I'm currently working in.

For self-hosting, I find working with files a bit easier to organize than a text full of aliases although I can see it easy to get overwhelmed with dot-files if some people aren't organized.

I've also made it as POSIX shell friendly as possible. I know a couple things I did aren't fully POSIX compliant currently but I that's something to work towards. This is also the first programming thing I ever completed so I'm quite happy with how it turned out.

If at least one other person finds this script useful, that would be pretty neat :)

A friend and I go to techno warehouse parties. She's early 30s and I'm late 30s. Although we don't go to clubs. That's a different vibe which isn't really for us.

There's a different crowd that goes to a club with bottle service and fancy dressed people and a warehouse party where music and art are more important than the clothes you wear.

As much as my autistic self hates loud noises, I also enjoy dancing to loud music and ignoring the flaming world for a night.

 
view more: next ›