Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created October 6, 2020 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/9cbd520fea27b28a9e643a026db69624 to your computer and use it in GitHub Desktop.
Save iaindooley/9cbd520fea27b28a9e643a026db69624 to your computer and use it in GitHub Desktop.
Backup board
function backupBoard(params,sig,original_time)
{
var all_backups = Board.findOrCreate("My Backups");
var to_backup = new Board(params);
var backup_name = to_backup.name()+" "+Trellinator.now();
Card.create(
all_backups.findOrCreateList(Trellinator.now().butlerDefaultDate()),
backup_name
).attachLink(to_backup.copy(backup_name).link());
ExecutionQueue.push("backupBoard",params,sig,original_time.addDays(1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment