Sha256: e84ba781dafd0cbe0a1a5bc676f9d09deb10c0cfbeacae053ac8f32c9b59a936

Contents?: true

Size: 593 Bytes

Versions: 7

Compression:

Stored size: 593 Bytes

Contents

# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.

$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'

module Qwik
  class Backup
    def self.main(argv)
      Dir.chdir($base)
      date = Time.now.strftime('%Y-%m-%dT%H')
      if ! FileTest.exist?('backup')
	Dir.mkdir('backup')
      end
      cmd = "tar cfj backup/data-#{date}.tar.bz2 data"
      puts cmd
      system cmd
    end
  end
end

if $0 == __FILE__
  Qwik::Backup.main(ARGV)
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
qwik2md-2.0.1 vendor/qwik/lib/qwik/dev-backup.rb
qwik2md-2.0.0 vendor/qwik/lib/qwik/dev-backup.rb
qwik2md-1.0.2 vendor/qwik/lib/qwik/dev-backup.rb
qwik2md-1.0.1 vendor/qwik/lib/qwik/dev-backup.rb
qwik2md-1.0.0 vendor/qwik/lib/qwik/dev-backup.rb
qwik2md-0.1.0 vendor/qwik/lib/qwik/dev-backup.rb
qwikdoc-0.0.1 vendor/qwik/dev-backup.rb