Hi,
Is it possible to automate MX snapshot with a Cron task/BASH script so the OS will periodically create a Snapshot and delete the old snapshot when done?
Thanks in advance,
Rob
Setting up cron job for running MX Snapshot? [Solved]
- anticapitalista
- Developer
- Posts: 4167
- Joined: Sat Jul 15, 2006 10:40 am
Re: Setting up cron job for running MX Snapshot?
I don't think so since snapshot requires user intervention.
anticapitalista
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
- Eadwine Rose
- Administrator
- Posts: 11968
- Joined: Wed Jul 12, 2006 2:10 am
Re: Setting up cron job for running MX Snapshot?
If it were possible you don't want it to remove the old one. If you happen to break something right before the snapshot is made you won't have the old one anymore.
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: Setting up cron job for running MX Snapshot?
Hi and thanks for the replies,
@anticapitalista So there's no way to run MX snapshot through the terminal? It has to be run as GUI?
@Eadwine Rose That's true, however I was thinking it wouldn't delete until after the new snapshot had finished being created.
Thanks again,
Rob
@anticapitalista So there's no way to run MX snapshot through the terminal? It has to be run as GUI?
@Eadwine Rose That's true, however I was thinking it wouldn't delete until after the new snapshot had finished being created.
Thanks again,
Rob
Re: Setting up cron job for running MX Snapshot? [Solved]
... You can use Timeshift instead, it is more adapted for your requested tasks.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32
- anticapitalista
- Developer
- Posts: 4167
- Joined: Sat Jul 15, 2006 10:40 am
Re: Setting up cron job for running MX Snapshot?
Correct.
anticapitalista
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Re: Setting up cron job for running MX Snapshot?
Now you can run snapshot with -c (--cli option) and it could potentially be used in scripts, but it's a long process and you might run out of space or whatever so I don't really recommend running it from a script.anticapitalista wrote: ↑Mon Nov 22, 2021 7:41 am I don't think so since snapshot requires user intervention.
Re: Setting up cron job for running MX Snapshot?
Judging by the responses I think it's ill advised, so I'll stick to the prescribed modes lol. But I am curious, what is the '--cli' option? Just as a theory exercise, the concept of not having a GUI interests me.Adrian wrote: ↑Mon Nov 22, 2021 9:01 pmNow you can run snapshot with -c (--cli option) and it could potentially be used in scripts, but it's a long process and you might run out of space or whatever so I don't really recommend running it from a script.anticapitalista wrote: ↑Mon Nov 22, 2021 7:41 am I don't think so since snapshot requires user intervention.
Re: Setting up cron job for running MX Snapshot?
Give it a try :) or do a "mx-snapshot --help" for more info...