snaprep

git mirror of https://ccx.te2000.cz/bzr/snaprep
git clone https://ccx.te2000.cz/git/snaprep
Log | Files | Refs

snap.missing (302B)


      1 #!/bin/awk -f
      2 BEGIN {
      3 	if (ARGC != 3) {
      4 		print "usage: snap.missing source destination"
      5 		exit 2
      6 	}
      7 
      8 	while ("snap.list " ARGV[1] "/" | getline) {
      9 		snapshots[$0] = 1
     10 	}
     11 
     12 	while ("snap.list " ARGV[2] "/" | getline) {
     13 		snapshots[$0] = 0
     14 	}
     15 
     16 	for (ts in snapshots) {
     17 		if (snapshots[ts]) print ts
     18 	}
     19 }