Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1923  / 1 Year ago, sun, may 28, 2023, 6:22:40

I have the following crontab running on my server:



0 23 * * * /etc/webmin/postgresql/backup.pl --all
@daily /etc/webmin/fsdump/backup.pl 155931323799484
30 20 * * 0 /etc/webmin/fsdump/backup.pl 157271323799728


I know that the 5 values on the left seperated by spaces are the times that the subsequent commands are supposed to run. But what is this "backup.pl" and "--all" and those long strings of numbers? Are those supposed to be commands?


More From » backup

 Answers
0

If I look at this ( https://github.com/webmin/webmin/blob/master/mysql/backup.pl ):



#!/usr/local/bin/perl
# backup.pl
# Called by cron to backup a database, or all databases

$no_acl_check++;
require './mysql-lib.pl';

if ($ARGV[0] eq "--all") {
$all = 1;
$cmode = $config{'backup_cmode_'};
}
else {
$ARGV[0] || die "Missing database parameter";
$cmode = 0;
}


I would assume it is the database name.


[#28681] Monday, May 29, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onomicsiberated

Total Points: 217
Total Questions: 98
Total Answers: 107

Location: Luxembourg
Member since Sun, May 28, 2023
1 Year ago
onomicsiberated questions
Wed, Mar 22, 23, 20:38, 1 Year ago
Thu, Oct 6, 22, 05:00, 2 Years ago
;