Jobs and Backups Scheduling

preview_player
Показать описание
In this video I am going to talk about two of my favorite tools in Linux: cron and rsync. Cron is a job scheduler and rsync is used mostly as a powerful backup tool.

*** Donate to the channel by visiting my Website ***

My Hardware:
AMD Ryzen 9
32 GB RAM
Sapphire RX 5700 XT

My software:
Distro: Arch Linux
Video editing software: Kdenlive
Check out my Website and connect on Social Media!

#LinuxMadeSimple #cron #rssync
Рекомендации по теме
Комментарии
Автор

I must say, it's a very important and informative video, as always!

sharjeel_mazhar
Автор

Thanks it is difficult to find simple explanations to explaining what some take an hour to explain that can be done in much fewer words. It is a god sent to have you around.

mustafababdullah
Автор

Hey Ermanno, thanks for all the work you are doing for the community. I would like to ask if you could do a video on SELinux and/or Apparmor? Apologies if you have already :)

slomosapien
Автор

Very useful and informative video. I've been using rsync on timeshift and it has saved me from various issues. Now I see that it can do more.

LuneLovehearn
Автор

you should check out systemd timers. It is probably already managing your other system services. You get the integrated logging and error reporting of systemd. it is pretty neat

getwreck
Автор

You just won't believe it, I have a project where I had to implement cron to do a job

soham
Автор

Something you probably should mention
rsync source/ destination/
Will copy everything from inside source directory to
rsync source destination/
Will copy whole source directory to destination
/ at the end makes a difference
Without / user can accidentally replace directory with a different directory

P.s.1
--exclude is something worth reading about

P.s.2
I like to use (for manual backup)
rsync -aAXvP
It will copy files with standard and extended permissions and P will show progress :)

JM-sneb
Автор

Great video. I just learn cron job like week ago.

gamerneversleep
Автор

Hey Ermano is the video on selinux coming this week. Eagerly waiting for that.

deepakshivraj
Автор

So that's what Timeshift looks like under the hood +/-. :)

thenextpoetician
Автор

I use Manjaro & Mint as Linux distribution. On both, I use Timeshift for backup my system. Timeshift is launched every time I open a session (According of scheduling: hourly, daily, weekly, monthly). So, if I don't use my machine one day, there is no backup. But if I would backup my Data on a network drive, with your method, if the job is scheduled at hh:mm time and if the machine is in hibernating mode, did the schedules job will start when I wakeup the machine or is it lost ? Thanks for your videos and for your lights...
PS: crontab and rsync are often installed on end-user Linux OS isn't it ?

PatrickConstant
Автор

Thanks for the great video!
However I am having a issue.
I am using a Pi for a server in my local network - after adding the ssh key, everytime I am trying to login to the server it is no longer asking for the password, buy now it is asking for the passphrase. What am I doing wrong ?
Also - is this error 'ok': "ync: chgrp failed: Operation not permitted (1)"
Thanks for your great easy to understand tutorials :-)

ShaunakHub
Автор

Hallo Ermanno,
wieder ein sehr gut erklärtes Video.
Bei mir kommt bei systemctl status cronie.service eine Fehlermeldung:
(root) CAN'T OPEN (/etc/crontab): Datei oder Verzeichnis nicht gefunden
Habe kein vi sondern nano installiert.
export EDITOR=nano ist in der .bashrc eingetragen.
sudo crontab -e bekomme ich diese Fehlermeldung:
no crontab for root - using an empty one
/bin/sh: Zeile 1: /usr/bin/vi: Datei oder Verzeichnis nicht gefunden
crontab: "/usr/bin/vi" exited with status 127
Wie kann ich diesen Fehler beheben?
LG Andreas

Andreas-fhzf
Автор

What to do if ones home network is being attached via ftp i set the firewall to deny ftp however the comcast router has really poor firewall that has no choice for ftp

mustafababdullah
Автор

I can add files to my remote server using rsync. However when I make changes on my laptop and run the run-parts command rysnc does not make the corresponding changes. I should add that when I run the command contained in the script it works...just the script isn't working. I've tried making the rysnc script executable, but then it fails. I try running run-parts as sudo, but no go. Any suggestions anyone?

markring