{"id":31,"date":"2006-08-18T23:30:53","date_gmt":"2006-08-18T23:30:53","guid":{"rendered":"http:\/\/www.dereckson.be\/blog\/2006\/08\/18\/copy-files-edited-after-a-specified-date-with-xcopy\/"},"modified":"2006-08-18T23:30:53","modified_gmt":"2006-08-18T23:30:53","slug":"copy-files-edited-after-a-specified-date-with-xcopy","status":"publish","type":"post","link":"https:\/\/www.dereckson.be\/blog\/2006\/08\/18\/copy-files-edited-after-a-specified-date-with-xcopy\/","title":{"rendered":"Copy files edited after a specified date with xcopy"},"content":{"rendered":"<p>How to quickly copy in your prod website your last modifications ?<\/p>\n<p><!--more--><\/p>\n<h4>Windows client side<\/h4>\n<p>Let&#8217;s copy all files modified or created on or after 15\/8 :<\/p>\n<p><code>xcopy d:WebServerwwwrootespace-win.orgwww d:uploadme \/D:8-15-2006 \/S<\/code><\/p>\n<p><strong>\/S<\/strong> to copy also subdirectories and <strong>\/D<\/strong> allow to specify date (on Windows Server 2003, Enterprise Edition, english edition, this is M-D-Y format, I presume it&#8217;s D\/M\/Y on french versions)<\/p>\n<p>If we wish exclude some files, for examples _notes Macromedia directories or UltraEdit auto .bak files : <strong> \/EXCLUDE:.bak+_notes <\/strong> (we separe string to exclude by +)<\/p>\n<h4>Uploading<\/h4>\n<p>My favorite way is \/dcc send SurfBoard, choose new folder d:uploadme, create a rar archive WITH THE DIRECTORY CONTENT, NOT THE DIRECTORY ITSELF (we don&#8217;t wish to add a new uploadme directory).<\/p>\n<h4>FreeBSD server side<\/h4>\n<p><code>cd \/home\/wwwroot\/espace-win.org\/www<\/code><\/p>\n<p><code>unrar x \/tmp\/60710-f9nmwx2-uploadme.rar<\/code><\/p>\n<p>That&#8217;s it \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to quickly copy in your prod website your last modifications ?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[5],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","tag-commandline"],"_links":{"self":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}