Sha256: 524088d30cbdae500115124b8dc3cbb340fbb346ff5925ced66228447c0caf69
Contents?: true
Size: 836 Bytes
Versions: 20
Compression:
Stored size: 836 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' require "qdumpfs" from = "./data/from" to = "./data/to" to2 = "./data/to2" def create_dir(dir) if FileTest.directory?(dir) FileUtils.rm_rf(dir) end FileUtils.mkpath(dir) end create_dir(to) create_dir(to2) arg = ["--backup-at=20210119", from, to] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210121", from, to] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210122", from, to] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210123", from, to] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210124", from, to] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210122", from, to2] Qdumpfs::Command.run(arg) arg = ["--backup-at=20210123", from, to2] arg = ["--command=delete", "--delete-from=20210122", "--delete-to=20210123", "--limit=1", to, to2] Qdumpfs::Command.run(arg)
Version data entries
20 entries across 20 versions & 1 rubygems