summaryrefslogtreecommitdiff
path: root/main.v
blob: 078e1d535e83489040ceef5bbfdcd6e873f8183f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module main

import time
import os
import os.cmdline

struct Backup_config {
	source      string @[required]
  destination string @[required]
  keep        int = 10
  incremental bool
  dry_run     bool
  verbose     bool
  compression bool
}

fn main() {
	println('Welcome to vbackup!')
	println('Current timestamp: ' + get_timestamp())
}

fn get_timestamp() string {
	now := time.now()
	return now.format_rfc3339()
}