Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
142 user(s) are online (101 user(s) are browsing Forums)

Members: 2
Guests: 140

nbache, 328gts, more...

Headlines

 
  Register To Post  

Bakuping Amiga
Just popping in
Just popping in


See User information
I try to make automated backup to my Amiga, using Backup and Docket from os4depot.

Both programs are marvelous. Backup is ultra-fast and Docket is easy to use and simple.

I managed to make script for Backup, Workbench, Work and data.

And managed to launch script timed from Docket.


So far fine.


Goal is actually make it so, that start 1st backup, 2nd when 1st finished, 3rd when 2nd finished and run pegoff when 3rd is finished.

I didnt made success to make this with amigados scripting. At least directly there is no easy way to make it. When I start script, it actually
start backupping all three volumes and shut down. Not surprised though.

I try to use google, but didnt find anything usable what I understand.

It is possible launch them separatelly from docket and give enought time to end backups and then run Amiga off.

Is is just muh more elegant to make it in one script ... :)

Can anyone help me?


/edited typos and stupid copypasting...

Go to top
Re: Bakuping Amiga
Just can't stay away
Just can't stay away


See User information
@Mlehto

Definitely make it one single script.

That's the logical thing to do when you want things serialized, it will make sure they always happen in the sequence you write then (unless you use Run in the script, of course, so don't so that).

I have a nightly backup script which runs every night at 3:30 am on my X1000, started by Docket. One single script which one by one mirrors the partitions I want to their mirror copies on a separate HD (using MirrorCopy).

Works nicely.

Best regards,

Niels

Go to top
Re: Bakuping Amiga
Just popping in
Just popping in


See User information
@nbache

Thanks :)

Actually I still managed to make typo to my single script with four lines. Amazing...

Now it works fine. Real fine, it is fast and I get logs and everything.



Go to top
Re: Bakuping Amiga
Just popping in
Just popping in


See User information
@nbache


Backup logs are allways with same name, so they are overwritten every bakup.


I try to make script, wich rename old logs with date, but it seems to impossible to find instructions or scripting examples

Im tried numerous different ways, no luck.

Does anyone have any ideas ?


Go to top
Re: Bakuping Amiga
Just popping in
Just popping in


See User information
@Mlehto

Any AmigaDos script experts around ?

Go to top
Re: Bakuping Amiga
Just popping in
Just popping in


See User information
@Mlehto

If you have a fixed name for the log file, you should be able to
to it with something like this:

rename backup.log backup.`date lformat %Y%m%d`

which would rename "backup.log" to "backup.20140112"

At any rate, using the LFORMAT switch on the DATE command along with
the backtic "immediate execute" feature of the CLI
probably will get you started.

Tom

Go to top
Re: Bakuping Amiga
Just can't stay away
Just can't stay away


See User information
@Mlehto

Err ... what Tom said

Also, there are docs for all the Shell commands available by just typing "help <commandname>" in the Shell.

E.g. "help date" should type the doc for Date, including all the format specifiers you can use.

In my script, I set the log name with a date on it at once, so I don't have to rename it later, like this:

First, near the top of the script, I do:

set dt `C:Date LFORMAT "%Y%m%d%H%M%S"`

Then, every time I append to the log, I refer to it with a name containing that variable, e.g.:

C:Date >> RAM:MirC_$dt.log

(MirC is my shorthand for MirrorCopy, the tool I use, and I make the log in RAM:, but copy it to HD after every step of the backup, including when it's done.)

I guess I could have made it even simpler by making another variable containing the whole logname, BTW.

Best regards,

Niels


Go to top
Re: Bakuping Amiga
Just popping in
Just popping in


See User information
@tmbreeden

Welcome Tom :)

@both

Thanks a lot !

Everyone knows, that Amiga Shell is powerfull, problem is how.

I think that LFORMAT is solely to list...

Any good documentation to shell-scripting ?

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project