工作雜記

2016年7月8日 星期五

Robocopy backup example

SET /P _inputname= Start backup(y/n):
IF "%_inputname%"=="y" GOTO :go_backup

ECHO Don't backup!
GOTO :end

:go_backup
Robocopy D:\Documents F:\000_Backup\Documents /R:3 /e /xo /purge /xf *.tmp *.bak Thumbs.db *.pst

:end
張貼者: Under Attack 於 凌晨2:12 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
標籤: bat, windows
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

網誌存檔

  • ►  2019 (3)
    • ►  2月 (2)
    • ►  1月 (1)
  • ►  2017 (1)
    • ►  5月 (1)
  • ▼  2016 (5)
    • ▼  7月 (1)
      • Robocopy backup example
    • ►  6月 (4)
  • ►  2015 (5)
    • ►  3月 (1)
    • ►  2月 (1)
    • ►  1月 (3)
  • ►  2014 (11)
    • ►  12月 (1)
    • ►  10月 (5)
    • ►  6月 (2)
    • ►  5月 (3)
  • ►  2013 (1)
    • ►  1月 (1)
  • ►  2012 (17)
    • ►  10月 (3)
    • ►  8月 (3)
    • ►  7月 (2)
    • ►  5月 (1)
    • ►  4月 (7)
    • ►  3月 (1)

關於我自己

Under Attack
檢視我的完整簡介
輕柔雅緻主題. 技術提供:Blogger.