Script(s) Backup alias

By SplitFire on Jan 15, 2011

Usage: /backup
Takes a backup copy of all the loaded scripts and saves it into 'backup' folder (Should be in your $mircdir by default)

;-- Scripts backup alias
;-- by SplitFire
;-- usage: /backup
;-- takes a backup copy of all the loaded scripts and saves it into 'backup' folder (Should be in your $mircdir by default) 

alias backup {
  var %t $ticks, %x $script(0)
  while (%x) {
    .copy -o $+(",$script(%x),") $+(",backup\,$nopath($script(%x)),")
    dec %x
  }
  echo -a * $script(0) Scripts Backup Complete ( $+ $calc(($ticks - %t) / 1000) Seconds)
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.