#cronjob
Explore tagged Tumblr posts
techniktagebuch · 3 months ago
Text
November 2024
ChatGPT hält mir die Hand, während ich mich durch den großen dunklen Wald zurück zu einem vernünftigen Backup taste
Vor zwei Jahren habe ich nach dem Tod des Macbooks einen Framework-Laptop gekauft und Linux darauf installiert. Ich mag ihn sehr, aber meine bewährte, supereinfache Cloud-Backup-Lösung mit Backblaze, die mich seit 2009 insgesamt vier Mal gerettet hat, funktioniert damit nicht mehr. Backblaze unterstützt kein Linux, wahrscheinlich weil sie dort annehmen, dass Leute, die Linux haben, sich selbst um so was kümmern können und gar keine einfache Lösung haben wollen.
Also, man kann Backblaze mit Linux verwenden und bei Backblaze bieten sie verschiedene Erklärdokumente dazu an. Aber es sind Erklärdokumente für Leute, die schon alles über Backups wissen und nicht für Leute, die einfach nur in einem grafischen Frontend Häkchen an die Ordner machen wollen, die gebackupt werden sollen. Das geht jetzt nicht mehr.
Ich habe also im November 2022 eine Weile gesucht und dann eine bei Ubuntu mitgelieferte Backupmöglichkeit namens "Déjà Dup" gefunden, die aber nur mit Google Drive zusammenarbeitet. Ich habe dafür 2 TB Speicherplatz bei Google Drive gekauft. Ein großer Teil meines Lebens hängt dadurch riskant an einem einzigen Account. Wenn Google mal zu dem Schluss kommt, dass ich gegen irgendwelche Regeln verstoßen habe, ist sehr viel auf einmal weg, wahrscheinlich ohne Vorwarnung und ohne Rettungsmöglichkeit.
In letzter Zeit zeigt Google mir öfter an, dass mein Speicherplatz fast voll ist.
Tumblr media
Wer weiß, auf welche verschwenderische Weise meine Backups dort geparkt werden. Ich habe keine Lust, in diese unbefriedigende Lösung noch weiteres Geld zu investieren, und suche deshalb bei Reddit, was derzeit die empfohlene Backup-Lösung ist. "restic mit Backblaze", scheint der Konsens zu sein, wobei restic irgendsoein Kommandozeilending ist.
Ich lasse mal das Tab mit dieser Antwort offen und unternehme ein paar Wochen nichts. Dann schickt mir Tabea einen Artikel über jemanden, der "sein Leben von ChatGPT bestimmen" lässt, also eigentlich jemanden mit ADHS, der sich von ChatGPT bei komplexen Alltagsdingen helfen lässt. Dadurch inspiriert, denke ich, dass ich mich auch von ChatGPT betreuen lassen könnte, und frage:
"Can you talk me through setting up a backup system using restic and Backblaze? I am running Linux and I'm already a customer at Backblaze. What's the first step?"
Eigentlich wollte ich wirklich nur den allerersten Schritt wissen. Aber ChatGPT beglückwünscht mich zu meiner Entscheidung und zeigt mir gleich alle sechs Schritte:
Tumblr media
Die Schritte 1 und 2 sind ganz leicht. Schritt 3 funktioniert nicht so wie behauptet, aber jetzt stecke ich schon mittendrin und will es wissen. Ich finde eine andere Anleitung bei Backblaze und scheitere eine Stunde lang vor mich hin.
ChatGPT ist dabei keine große Hilfe, es hat zwar teilweise recht mit seinen Ratschlägen, teilweise aber auch nicht, und ich weiß zu wenig, um den Unterschied selbst zu erkennen. Es ist aber psychologisch wichtig, ich fühle mich dadurch nicht so allein. Und ich kann mir Dinge erklären lassen, die ich nicht verstehe, zum Beispiel:
What does the "~" mean in "e.g., ~/restic_backup.sh"?
ChatGPT lacht dann nicht über mich, sondern erklärt es mir einfach. Ich überlege, ob es vielleicht Absicht sein könnte, dass Linux-Anleitungen immer so unvollständig sind. Will man Leute wie mich davon abhalten, mit ihren ungeschickten Pfoten alles kaputtzuspielen? Aber es kommt mir wahrscheinlicher vor, dass sich die Autoren* dieser Anleitungen nur nicht vorstellen können, dass man diese absolut grundlegenden Dinge nicht weiß. Und das ist ja okay, ich kann mir auch vieles nicht vorstellen.
* Absichtlich ungegendert; auf anekdotischer Basis habe ich den Eindruck, dass Autorinnen mehr Rücksicht auf mögliches Unwissen nehmen.
So begleitet beiße ich mich durch alle Probleme durch, ohne zu verzweifeln, und nach ungefähr anderthalb Stunden läuft mein erstes Backup. Jetzt, wo es eingerichtet ist, wirkt es genauso einfach wie mein Backblaze von früher, nur dass ich die Einstellungen nicht mehr in einer grafischen Benutzeroberfläche mache, sondern in einer Datei. Dort trage ich die lokalen Verzeichnisse ein, die vom Backup erfasst werden sollen. Der Rest passiert automatisch.
Dann merke ich, dass ich die Dateien bei Backblaze jetzt nicht mehr so schön ansehen kann wie früher, als meine Verzeichnisse einfach auf deren Server gespiegelt wurden. Das hat mein Vertrauen ins Vorhandensein des Backups gestärkt und mir bei der Wiederherstellung geholfen. restic lädt die Daten verschlüsselt hoch, und das heißt, ich sehe bei Backblaze nur kryptische Ordner und Dateinamen. Das gefällt mir zwar nicht, aber ich sage mir, dass diese Verschlüsselung wahrscheinlich sinnvoll und gut für mich ist. ChatGPT hat mir erklärt, was zu tun wäre, wenn ich die Daten ansehen oder wiederherstellen wollte. Es klingt umständlich, aber machbar.
Jedenfalls habe ich jetzt wieder ein Backup, das nicht bei Google liegt, und es ist nicht sehr teuer (1 TB bei Backblaze kostet $6 pro Monat.) Ob sich die Daten dann auch wirklich wiederherstellen lassen, und wie kompliziert das sein wird, weiß ich noch nicht. Aber ich werde es sicher bald herausfinden.
Update: Einige Wochen lang rufe ich restic gelegentlich von Hand auf und denke dabei: Jemand müsste mal einen Cronjob anlegen, damit das automatisch täglich passiert. Ich habe das zwar schon oft gemacht, aber noch nie auf meinem eigenen Gerät, immer nur auf einem Server anderswo. Anfang Januar raffe ich mich auf, endlich den Cronjob anzulegen, und Mitte Januar funktioniert er dann auch (nach weiteren Beratungen mit ChatGPT).
(Kathrin Passig)
13 notes · View notes
oeffentlicheversicherung · 2 months ago
Text
Es kann nie falsch sein sich so etwas im Lesezeichen-Verzeichnis abzulegen. Irgendwann kommt der Zeitpunkt, wo man es gebrauchen kann.
#Cronjob
0 notes
designpatternpirate · 5 months ago
Text
Tumblr media
Not gonna lie, they did a good job with this ad
0 notes
codeonedigest · 2 years ago
Video
youtube
(via Nodejs Cron Job Scheduler & Cron Expression Tutorial in JavaScript with Examples for Developers) Full Video Link       https://youtu.be/yI_xAky_-3c        Hello friends, new #video on #cronjob #jobscheduler #scheduler #cronexpression in #nodejs #javascript #projeect #application #tutorial #examples is published on #codeonedigest #youtube channel.  @java #java #aws #awscloud @awscloud @AWSCloudIndia #salesforce #Cloud #CloudComputing @YouTube #youtube #azure #msazure  #codeonedigest @codeonedigest  #nodejs #cronjob #javascript #nodejstutorial #learnnodejs #node.js #nodejsandexpressjstutorial #cronjobexample #jobscheduling #jobscheduler #cronjobscheduler #javascriptcronjob #javascriptjobscheduler #javascripttutorialforbeginners #javascripttutorial #javascriptfullcourse #cronscheduler #cronjobschedulerexpression #cronexpression #cronexpressioninjavascript #nodejscronexpression #nodejsjobscheduler #nodejscronjob #nodejstutorial #job
1 note · View note
moizwordpress · 5 months ago
Text
How MoizWordpress Automated a Gaming Console Inventory with WooCommerce and Google Sheets
Tumblr media
A few months ago, we took on a project that would challenge our creativity and technical expertise in ways we hadn't anticipated. Our client, an ambitious retailer of gaming consoles, approached us with a unique problem: they needed to streamline their inventory management, which was becoming increasingly cumbersome. The solution? A seamless integration between Google Sheets and WooCommerce that would automatically update their online store with the latest products, taxonomies, and tags. And to make it even more exciting, the entire process had to be automated through a cron job that would run at a specific time every month.
The Challenge
From the outset, we knew this project was going to be interesting. The client was managing their gaming console inventory in a Google Sheet. Every time they wanted to update their online store, they had to manually input the data into WooCommerce—a tedious process that was eating up valuable time and resources.
The goal was clear: we needed to create a system where all product data, including details like console types, storage capacities, and even color options, would be automatically imported from Google Sheets into WooCommerce. But it didn’t stop there. We also had to generate the correct taxonomies and product tags, ensuring everything was organized and searchable. And the best part? This all needed to happen on autopilot, triggered by a monthly cron job.
Crafting the Solution
We began by diving deep into the Google Sheet where the client kept all their data. Each row represented a gaming console, with columns for various attributes like brand, model, operating system, RAM, and more. We knew that every piece of information in this sheet had to find a home in WooCommerce, so we mapped out how each column would correspond to a product property, taxonomy, or tag in the store.
The first step was to create a custom WooCommerce integration that could read the Google Sheet data. We developed a script that would pull the information directly from the sheet, process it, and then push it into WooCommerce. This wasn’t just about creating products; we needed to ensure that each product was categorized correctly, with all relevant taxonomies and tags.
To make the shopping experience even better, we added a feature that allowed users to compare prices and features across different gaming consoles. This comparison tool would enable customers to make well-informed decisions, comparing specs like storage capacity, operating system, and price points—all at a glance.
We then turned our attention to the cron job. The client wanted the store to be updated automatically at a specific time each month, reflecting any changes made to the Google Sheet. To achieve this, we set up a cron job on their server that would trigger our script at the designated time. This cron job would fetch the latest data, compare it with what was already in WooCommerce, and make any necessary updates—whether it was adding new products, modifying existing ones, or deleting items no longer available.
Overcoming the Hurdles
Like any project, we encountered our share of challenges. One of the biggest was ensuring that the data transfer was both accurate and efficient. Google Sheets is a fantastic tool, but when you're dealing with large amounts of data, things can get a little tricky. We had to carefully manage how the data was read and processed to avoid any potential issues like timeouts or incomplete transfers.
Another challenge was making sure that the cron job ran smoothly without interrupting the client's site. We tested the process extensively, running it at different times and with varying amounts of data to ensure that everything would work as intended when it went live.
The Outcome
When we finally deployed the solution, the results were exactly what the client had hoped for. Their WooCommerce store was now fully integrated with Google Sheets, and the monthly cron job was keeping everything up to date without any manual intervention. The client could focus on growing their business, confident that their online store was always accurate and up-to-date.
The addition of the price and features comparison tool was a game-changer. Customers could now easily weigh their options, helping them choose the console that best suited their needs and budget. This not only enhanced the shopping experience but also built trust and transparency with their audience.
Final Thoughts
This project was a testament to what the MoizWordPress team can achieve with the right mix of creativity and technical know-how. By thoroughly understanding our client’s needs and leveraging the power of automation, we delivered a solution that not only met but exceeded their expectations. The seamless integration of Google Sheets with WooCommerce, coupled with the addition of a price and features comparison tool, truly transformed their online store.
If you’re looking to streamline your own processes, enhance your e-commerce platform, or simply want to learn more about how we can help bring your ideas to life, we’d love to hear from you. Get in touch with us today to explore how MoizWordPress can elevate your business to the next level.
3 notes · View notes
relto · 1 year ago
Text
copying this one run is fucking killing me. what do you mean its not even half done. 5000 files more to go??? i literally logged on over the weekend to let the copy process run for a few hours at a time. how much longer do i have to wait???
0 notes
xylophonetangerine · 10 months ago
Text
How to run automatic nightly backups of your computer:
Linux: Set up a cronjob to run rsync or borgbackup or install a Flatpak to do it. All of this is gratis and libre, of course.
Macintosh: Use Time Machine which is included with the operating system.
Windows: "Well, Microsoft removed the backup feature from Windows 10 to sell more OneDrive plans so your best option is to use either MeeVee Reflect (doesn't do what you asked for), SoftSponge™ DataSquirt™ (proprietary and $175), or RecRxWxBackCopy (last updated in 2007)."
12 notes · View notes
merge-conflict · 2 years ago
Text
Valentine's Guide for Care and Feeding of Annoying Shitbird Rockerboys
Should you find yourself unhappily occupying the same brainpan as a man who blew up a few blocks of your city half a century ago, consider applying the following two-pronged approach to curb your rockerboy's urge to go on long angry rants and ruin everyone's day and give you the worst tension headache anyone has ever had in their life:
Do Not Engage
The first and most important technique is also the hardest. Take care not to react strongly to anything the rockerboy may say, especially if he says it in a mocking tone. While it's true that he expresses this behavior as a function of his feelings of inadequacy and general frustration at the direction his life and the world has taken, it's no excuse for bad behavior, and it must not be rewarded.
Take for instance: "Fucking corps never can be satisfied until they've got everyone crushed under their heel."
Acceptable general responses:
"Uhuh."
"I've never heard that before."
"Yes, you're right, that's very interesting."
These may generate a variety of unpleasant replies, but remember: Do Not Engage. You may be unable to stop yourself from reacting emotionally, but also remember that these emotions may not be your own. Simply remain quiet and keep working, until your rockerboy tires himself out. It's important to stay consistent when confronting this behavior, until he learns that it is unproductive as well as unsatisfying.
2. Reward Good Etiquette
It's not enough to simply ignore bad behavior. Good behavior must be encouraged if you wish to properly socialize your grubby egomaniacal brain parasite. Even if you are tired, in pain, and almost certainly going to die in a few weeks, that's no excuse not to keep up your work.
Take for instance the neutral statement: "Huh. Haven't heard that song playing in a while."
While this may seem like the bare minimum of polite conversation, it is a crucial first step in creating a bearable level of social interaction with the thing that is slowly overwriting your sense of self. Never let it be said that you are a poor manager of your resources, whether they be useful cronjob scripts or the person who is involuntarily killing you, minute by minute and neuron by neuron.
Suggested Responses:
"I've never heard it before. Is it a favorite of yours?"
"It's not bad. Got a catchy bass line."
(Stop and listen to the song.)
Remember: only you can save you. And you can't be saved. Might as well try to make the best of it!
22 notes · View notes
amwult · 1 year ago
Text
i recharge mana faster at 3am from the ambient cronjobs being triggered
5 notes · View notes
andmaybegayer · 10 months ago
Text
It looks like some of the cronjobs that would normally maintain NextCloud Memories are not set up by the kube pod that they use for apps so I am learning things about Kubernetes against my will. Committing crimes by running shells inside pods.
When I learned about Docker against my will I also turned out to think that was pretty neat so, you know. Kubernetes can use Docker but this one doesn't.
6 notes · View notes
azcode · 11 months ago
Link
2 notes · View notes
carriershoukaku · 2 years ago
Text
tbh as much as I miss my ex-girlfriend's company we just weren't working out as a girlfriend-girlfriend couple. but I do appreciate her taking the time out of her day to talk to me about my new job and help me out with cronjob/MySQL stuff.
2 notes · View notes
archronova · 2 years ago
Text
Tumblr media
Tempo hari, diminta kampus untuk mindah salah satu server yang dari workstation biasa ke server kampus. Karena pakai infrastruktur nya virtual-machine, walhasil tinggal pindah virtual-harddisk (VHD) settingan ikut, tinggal disesuaikan dikit.
Hari pertama setelah selesai pindah, masih ada kendala bahwa server tidak dapat diakses di jaringan lokal. Walaupun dari hoating sudah diarahkan ke alamat IP public terkait dan di reverse proxy ke alamat IP sesungguhnya. Masalah teratasi keesokan harinya setelah network engineer saya minta untuk tambahkan IP static atau ganti IP DNS (DHCP) dengan public DNS.
Namun sangat disayangkan, catu daya mati di siang hari sesaat saya konfirmasi bahwa jaringan lokal sudah dapat mengakses server dengan domain terkait. Masalah selanjutnya datang, yakni setelah dinyalakan server tidak otomatis mem-booting VM. Namun hal tersebut dapat teratasi karena sudah diantisipasi dengan melakukan setting pada BIOS supaya mainboard dapat menyala sesaat setelah mendapat catu daya.
Tinggal masalah terakhir bahwa dari VM sendiri tidak dapat menjalankan cronjob maupun booting otomatis melalui VBoxManage. Hingga akhirnya jalan terakhir adalah menjadikan action tersebut sebuat service yang berjalan sesaat setelah booting hypervisor selesai.
Dan benar, Hari ini terjadi pemadaman listrik. Setelah pemadaman, hypervisor dan VM booting kembali secara normal.
Baru saja, saya menambahkan auto-mount ke harddisk bawaan servernya. Mungkin besok saat restart server akan dicoba dan dilihat hasilnya.
Fin.
Surakarta, Jumat, 31 Maret 2023
Rhesa
Referensi :
[1] https://kifarunix.com/autostart-virtualbox-vms-on-system-boot-on-linux/
[2] https://www.linuxbabe.com/desktop-linux/how-to-automount-file-systems-on-linux
3 notes · View notes
qwertycody · 2 years ago
Text
MariaDB - Creating an Event and Procedure
Taking some time today to share a simple example of how to create an Event and a Stored Procedure in MariaDB. Use Case / Benefits: Executes an Stored Procedure on a set schedule (like a cronjob) Using a Stored Procedure in conjunction with an event allows you to change the code associated with the procedure without having to recreate the Event if something needs to be added Example – Stored…
View On WordPress
4 notes · View notes
kaobei-engineer · 15 days ago
Photo
Tumblr media
#純靠北工程師8dv
----------
SA: 請問你的Cronjob怎麼沒有把A Table的B欄位的值改成3? 我: 妳當初文件開的規格只有說執行成功要把A欄位的值改成3, 沒有說B欄位也要改 (文件截圖傳給SA看) SA: 可是xxxxx, xxxxx, xxxxx這幾筆都有改B欄位啊!! 我: ???????????????
----------
💖 純靠北工程師 官方 Discord 歡迎在這找到你的同溫層!
👉 https://discord.gg/tPhnrs2
----------
💖 全平台留言、文章詳細內容
👉 https://init.engineer/cards/show/10867
0 notes
codezup · 3 months ago
Text
Managing Docker Resources with Kubernetes CronJobs
Managing Docker Resources with Kubernetes CronJobs Introduction Managing Docker resources efficiently is crucial for building scalable and reliable containerized applications. Kubernetes CronJobs provide a powerful tool for automating recurring tasks and managing Docker resources. In this tutorial, we will explore the importance of managing Docker resources with Kubernetes CronJobs, what…
0 notes