about backup with crontab

dear all!
i'm a newbie to this forum as well as aix. i'm using aix version 6.1 by ssh remote with no GUI. i'm using crontab for scheduling backup with "backup" command too.
i've created an entry in crontab file to backup some files daily. everything works well.
but i've got a question: how can i backup my files daily without overwriting the previous backup version? for example, the backup file on monday has a name mondbk, on tuesday is tuesbk and so on...and they must not be overwritten for restoring in the future.
could anyone tell me how to do that, please?
many thanks and best regards.

How about just putting the date in the filename?

1 Like

:smiley: can we do that? could you show me how to do it? tks

try for example

or use

1 Like

i understand what you mean. but i want to append the date in the file. for example, when i run
backup -u -1 -f/home/abc/daily /home/def/myfile
The daily file must be dailyddmmyy.
Could we do that?

yes,

1 Like

whoa! It worksssssssssssssss!!!!! Many many thanks to you!!!!!!!!!!!

---------- Post updated at 04:05 AM ---------- Previous update was at 03:46 AM ----------

i have one more question. how can i schedule incremental backup?
for example, on monday, it's
backup -1
on tuesday, it's
backup -2
and so on.
could i do this job automatically by using crontab? tks

yes, of course you could put one line for each day in crontab.

1 Like

that's right, so simple!!!! i didn't think about it in the first place. thank you so much :smiley: