<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CyberNotes: 7-Zip Command Line Backups</title>
	<atom:link href="http://cybernetnews.com/cybernotes-7-zip-command-line-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/</link>
	<description>Technology News</description>
	<lastBuildDate>Sun, 22 Nov 2009 02:42:57 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew Roberts</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-150061</link>
		<dc:creator>Andrew Roberts</dc:creator>
		<pubDate>Thu, 29 Oct 2009 05:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-150061</guid>
		<description>Hey would you trap any errors reported by 7-zip when run from the command line?</description>
		<content:encoded><![CDATA[<p>Hey would you trap any errors reported by 7-zip when run from the command line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-144114</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 27 Oct 2008 11:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-144114</guid>
		<description>&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-143828&quot; rel=&quot;nofollow&quot;&gt;Lappy wrote:&lt;/a&gt;&lt;blockquote&gt;&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-143758&quot; rel=&quot;nofollow&quot;&gt;Ryan wrote:&lt;/a&gt;&lt;blockquote&gt;I looked all over, and couldn’t find anything that would let you do the previous day. It’s gotta be possible though.&lt;/blockquote&gt;&lt;/div&gt;I know - that’s what I thought too!! &lt;B&gt;Pretty please&lt;/B&gt; do let us know if you do actually find anything, anything at all! I would be very grateful indeed.&lt;/blockquote&gt;&lt;/div&gt;
It can be done and various scripts exist on the web (one such script can be found at http://www.robvanderwoude.com/datetiment.html#Yesterday). The problem is that it&#039;s too complex for the triviality of the issue and usually it&#039;s recommended to not use batch files, but WSH if you need this functionality.</description>
		<content:encoded><![CDATA[<div class="commentquote"><a href="#comment-143828" rel="nofollow">Lappy wrote:</a><br />
<blockquote>
<div class="commentquote"><a href="#comment-143758" rel="nofollow">Ryan wrote:</a><br />
<blockquote>I looked all over, and couldn’t find anything that would let you do the previous day. It’s gotta be possible though.</p></blockquote>
</div>
<p>I know &#8211; that’s what I thought too!! <b>Pretty please</b> do let us know if you do actually find anything, anything at all! I would be very grateful indeed.</p></blockquote>
</div>
<p>It can be done and various scripts exist on the web (one such script can be found at [<a href='http://www.robvanderwoude.com/datetiment.html#Yesterday' rel='nofollow'>robvanderwoude.com</a>]). The problem is that it&#8217;s too complex for the triviality of the issue and usually it&#8217;s recommended to not use batch files, but WSH if you need this functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lappy</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-143828</link>
		<dc:creator>Lappy</dc:creator>
		<pubDate>Wed, 08 Oct 2008 21:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-143828</guid>
		<description>&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-143758&quot; rel=&quot;nofollow&quot;&gt;Ryan wrote:&lt;/a&gt;&lt;blockquote&gt;I looked all over, and couldn’t find anything that would let you do the previous day. It’s gotta be possible though.&lt;/blockquote&gt;&lt;/div&gt;

I know - that&#039;s what I thought too!!  &lt;b&gt;Pretty please&lt;/b&gt; do let us know if you do actually find anything, anything at all!  I would be very grateful indeed.</description>
		<content:encoded><![CDATA[<div class="commentquote"><a href="#comment-143758" rel="nofollow">Ryan wrote:</a><br />
<blockquote>I looked all over, and couldn’t find anything that would let you do the previous day. It’s gotta be possible though.</p></blockquote>
</div>
<p>I know &#8211; that&#8217;s what I thought too!!  <b>Pretty please</b> do let us know if you do actually find anything, anything at all!  I would be very grateful indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-143758</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 04 Oct 2008 13:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-143758</guid>
		<description>I looked all over, and couldn&#039;t find anything that would let you do the previous day. It&#039;s gotta be possible though.</description>
		<content:encoded><![CDATA[<p>I looked all over, and couldn&#8217;t find anything that would let you do the previous day. It&#8217;s gotta be possible though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lappy</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-143682</link>
		<dc:creator>Lappy</dc:creator>
		<pubDate>Mon, 29 Sep 2008 23:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-143682</guid>
		<description>&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-143443&quot;&gt;richlich wrote:&lt;/a&gt;&lt;blockquote&gt;Excuse my ignorance, but what would the structure be to 7za a folder with the previous day’s date on it?&lt;/blockquote&gt;&lt;/div&gt;

I can help with making a file timestamped for the &lt;b&gt;current&lt;/b&gt; date, but I don&#039;t think I know how to make one timestamped for the &lt;b&gt;previous&lt;/b&gt; day.

It is actually rather simple - all you have to do is insert the following prompts into the filename (within the batch file):

Current hour:			%TIME:~0,2%
Current minute:			%TIME:~3,2%
Current second:			%TIME:~6,2%
Current day of week:		%DATE:~0,3%
Current month:			%DATE:~4,2%
Current day date:		%DATE:~7,2%
Current year (2 digit):		%DATE:~-2%
Current year (4 digit):		%DATE:~-4%
Current DOW MM/DD/YYY		%date%
Current HH:MM:SS.hh		%time%

(see &lt;a href=&quot;http://simultaneouspancakes.com/Lessons/archives/2006/04/getting_the_cur.shtml&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://xona.com/2006/07/05g.html&quot;&gt;here&lt;/a&gt;, and especially &lt;a href=&quot;http://www.intelliadmin.com/blog/2007/02/create-date-and-time-stamp-in-your_15.html&quot;&gt;here&lt;/a&gt;.)

An example of what a batch file for creating an archive with a timestamp of the &quot;month - day of month - year&quot; is as follows:
&lt;i&gt;.\location_of_7zip\7za.exe u -tzip “c:\location_of_archive\%DATE:~4,2%-%DATE:~7,2%-%DATE:~-2%.zip” “c:\location_of_files\*.txt”&lt;/i&gt;

(make sure to have the quotation marks if you choose to have spaces in the filename)

If anyone can take this to the next step and figure out how to do a similar task, but the a &lt;b&gt;previous&lt;/b&gt; date, I&#039;m sure there would be many grateful readers!</description>
		<content:encoded><![CDATA[<div class="commentquote"><a href="#comment-143443">richlich wrote:</a><br />
<blockquote>Excuse my ignorance, but what would the structure be to 7za a folder with the previous day’s date on it?</p></blockquote>
</div>
<p>I can help with making a file timestamped for the <b>current</b> date, but I don&#8217;t think I know how to make one timestamped for the <b>previous</b> day.</p>
<p>It is actually rather simple &#8211; all you have to do is insert the following prompts into the filename (within the batch file):</p>
<p>Current hour:			%TIME:~0,2%<br />
Current minute:			%TIME:~3,2%<br />
Current second:			%TIME:~6,2%<br />
Current day of week:		%DATE:~0,3%<br />
Current month:			%DATE:~4,2%<br />
Current day date:		%DATE:~7,2%<br />
Current year (2 digit):		%DATE:~-2%<br />
Current year (4 digit):		%DATE:~-4%<br />
Current DOW MM/DD/YYY		%date%<br />
Current HH:MM:SS.hh		%time%</p>
<p>(see [<a href='http://simultaneouspancakes.com/Lessons/archives/2006/04/getting_the_cur.shtml,' rel='nofollow'>simultaneouspancakes.com</a>] [<a href='http://xona.com/2006/07/05g.html,' rel='nofollow'>xona.com</a>] and especially [<a href='http://www.intelliadmin.com/blog/2007/02/create-date-and-time-stamp-in-your_15.html.' rel='nofollow'>intelliadmin.com</a>])</p>
<p>An example of what a batch file for creating an archive with a timestamp of the &#8220;month &#8211; day of month &#8211; year&#8221; is as follows:<br />
<i>.\location_of_7zip\7za.exe u -tzip “c:\location_of_archive\%DATE:~4,2%-%DATE:~7,2%-%DATE:~-2%.zip” “c:\location_of_files\*.txt”</i></p>
<p>(make sure to have the quotation marks if you choose to have spaces in the filename)</p>
<p>If anyone can take this to the next step and figure out how to do a similar task, but the a <b>previous</b> date, I&#8217;m sure there would be many grateful readers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: richlich</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-143443</link>
		<dc:creator>richlich</dc:creator>
		<pubDate>Fri, 19 Sep 2008 18:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-143443</guid>
		<description>Excuse my ignorance, but what would the structure be to 7za a folder with the previous day&#039;s date on it?</description>
		<content:encoded><![CDATA[<p>Excuse my ignorance, but what would the structure be to 7za a folder with the previous day&#8217;s date on it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lappy</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-142328</link>
		<dc:creator>Lappy</dc:creator>
		<pubDate>Tue, 19 Aug 2008 22:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-142328</guid>
		<description>&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-142326&quot;&gt;Ryan wrote:&lt;/a&gt;&lt;blockquote&gt;Thanks for helping Lappy!&lt;/blockquote&gt;&lt;/div&gt;

No problem!  I spent quite a bit of time dealing with the 7-zip command line, for the purposes of making my own batch files in order to automate backups.

Learning and effectively using 7za.exe is terrific!</description>
		<content:encoded><![CDATA[<div class="commentquote"><a href="#comment-142326">Ryan wrote:</a><br />
<blockquote>Thanks for helping Lappy!</p></blockquote>
</div>
<p>No problem!  I spent quite a bit of time dealing with the 7-zip command line, for the purposes of making my own batch files in order to automate backups.</p>
<p>Learning and effectively using 7za.exe is terrific!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-142326</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 19 Aug 2008 22:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-142326</guid>
		<description>Thanks for helping Lappy!</description>
		<content:encoded><![CDATA[<p>Thanks for helping Lappy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lappy</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-142259</link>
		<dc:creator>Lappy</dc:creator>
		<pubDate>Mon, 18 Aug 2008 19:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-142259</guid>
		<description>&lt;div class=&quot;commentquote&quot;&gt;&lt;a href=&quot;#comment-142225&quot;&gt;Sam wrote:&lt;/a&gt;&lt;blockquote&gt;I need help with the following and I appreciate if you can help me out.

Let say you have one file (*.txt) on your desktop which gets updated every month using a different name. In this case I want 7zip to create an archive every month using whatever name the file has. Can this be done?

7za.exe a *.7z “C:\Users\Ryan\Desktop\*.txt”&lt;/blockquote&gt;&lt;/div&gt;

Yes that concept works. You can use an asterisk in place of a filename in order to specify a certain file extension.  However, please be aware there are a couple of catches (see &lt;a href=&quot;http://www.7-zip.org/faq.html&quot;&gt; here&lt;/a&gt;):

1) You cannot use the *.* form of a wildcard.  You have to simply use a single *
2) If you chose to use certain specific archive compressions (i.e., .7z), you&#039;ll have to use the &quot;-ms=off&quot; switch (disable solid mode) in order to be able to later add files to that archive.

You also may want to use the &quot;u&quot; command in place of the &quot;a&quot; command.  This will guarantee that the newest version of any existing files will be updated.

In short, it should look something like this:
7za.exe u -tzip &quot;c:\location_of_archive\archive.zip&quot; &quot;c:\location_of_files\*.txt&quot;

I strongly recommend you consult the help file (7-zip.chm - seen in the screencap in the article) included in the &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=14481&quot;&gt; downloaded 7za zip file&lt;/a&gt; for all the details about command line usage.</description>
		<content:encoded><![CDATA[<div class="commentquote"><a href="#comment-142225">Sam wrote:</a><br />
<blockquote>I need help with the following and I appreciate if you can help me out.</p>
<p>Let say you have one file (*.txt) on your desktop which gets updated every month using a different name. In this case I want 7zip to create an archive every month using whatever name the file has. Can this be done?</p>
<p>7za.exe a *.7z “C:\Users\Ryan\Desktop\*.txt”</p></blockquote>
</div>
<p>Yes that concept works. You can use an asterisk in place of a filename in order to specify a certain file extension.  However, please be aware there are a couple of catches (see [<a href='http://www.7-zip.org/faq.html' rel='nofollow'>7-zip.org</a>]):</p>
<p>1) You cannot use the *.* form of a wildcard.  You have to simply use a single *<br />
2) If you chose to use certain specific archive compressions (i.e., .7z), you&#8217;ll have to use the &#8220;-ms=off&#8221; switch (disable solid mode) in order to be able to later add files to that archive.</p>
<p>You also may want to use the &#8220;u&#8221; command in place of the &#8220;a&#8221; command.  This will guarantee that the newest version of any existing files will be updated.</p>
<p>In short, it should look something like this:<br />
7za.exe u -tzip &#8220;c:\location_of_archive\archive.zip&#8221; &#8220;c:\location_of_files\*.txt&#8221;</p>
<p>I strongly recommend you consult the help file (7-zip.chm &#8211; seen in the screencap in the article) included in the [<a href='http://sourceforge.net/project/showfiles.php?group_id=14481' rel='nofollow'>sourceforge.net</a>] for all the details about command line usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://cybernetnews.com/cybernotes-7-zip-command-line-backups/comment-page-1/#comment-142225</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 18 Aug 2008 02:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://cybernetnews.com/2008/01/03/cybernotes-7-zip-command-line-backups/#comment-142225</guid>
		<description>I need help with the following and I appreciate if you can help me out.

Let say you have one file (*.txt) on your desktop which gets updated every month using a different name. In this case I want 7zip to create an archive every month using whatever name the file has. Can this be done?

7za.exe a *.7z &quot;C:\Users\Ryan\Desktop\*.txt&quot;</description>
		<content:encoded><![CDATA[<p>I need help with the following and I appreciate if you can help me out.</p>
<p>Let say you have one file (*.txt) on your desktop which gets updated every month using a different name. In this case I want 7zip to create an archive every month using whatever name the file has. Can this be done?</p>
<p>7za.exe a *.7z &#8220;C:\Users\Ryan\Desktop\*.txt&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
