namespace :backup do
BACKUP_TARGET_FOLDER = "\\\\my-server\\my-backup-folder"
WIKI_ROOT = "C:\\pimki\\storage"
def get_timestamp
Time.now.strftime('%Y%m%d_%H%M%S')
end
desc "Backup the wiki to #{BACKUP_TARGET_FOLDER}"
task :wiki do
launch "xcopy /S /Y /I #{WIKI_ROOT} #{BACKUP_TARGET_FOLDER}\\backup_wiki_#{get_timestamp}"
end
end