<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Replace the backup file]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=8870</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=8870&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Replace the backup file.]]></description>
		<lastBuildDate>Wed, 06 Mar 2024 14:37:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Replace the backup file]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50423#p50423</link>
			<description><![CDATA[<p>Oh, is there any problem with what you are doing? Copying sqlite.db to backup.db? It will always replace backup.db I think. Can you cite some example of what you really want to do so that it is easier to understand like citing filenames, what &quot;one name&quot; are you referring to, etc.</p>]]></description>
			<author><![CDATA[null@example.com (brian.zaballa)]]></author>
			<pubDate>Wed, 06 Mar 2024 14:37:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50423#p50423</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replace the backup file]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50419#p50419</link>
			<description><![CDATA[<div class="quotebox"><cite>brian.zaballa wrote:</cite><blockquote><p>Try replacing the backup.db with the date and time format</p><div class="codebox"><pre><code>procedure form2_Button8_OnClick (Sender: TObject; var Cancel: boolean);
begin
  if CopyFile(&#039;sqlite.db&#039;, &#039;Backup\&#039;+FormatDateTime(&#039;mm_dd_yyyy_hh_nn_ss&#039;, now)+&#039;.db&#039;) then showmessage(&#039;backup ok&#039;);
end;</code></pre></div></blockquote></div><br /><br /><p>Thank you<br />I used this in the past, but it created a lot of files and took up space on the hard drive<br />I want the name to be fixed, and when the button is pressed, it will replace the old file with the new file</p>]]></description>
			<author><![CDATA[null@example.com (ms2014m)]]></author>
			<pubDate>Wed, 06 Mar 2024 08:33:10 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50419#p50419</guid>
		</item>
		<item>
			<title><![CDATA[Re: Replace the backup file]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50418#p50418</link>
			<description><![CDATA[<p>Try replacing the backup.db with the date and time format</p><div class="codebox"><pre><code>procedure form2_Button8_OnClick (Sender: TObject; var Cancel: boolean);
begin
  if CopyFile(&#039;sqlite.db&#039;, &#039;Backup\&#039;+FormatDateTime(&#039;mm_dd_yyyy_hh_nn_ss&#039;, now)+&#039;.db&#039;) then showmessage(&#039;backup ok&#039;);
end;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (brian.zaballa)]]></author>
			<pubDate>Wed, 06 Mar 2024 08:29:35 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50418#p50418</guid>
		</item>
		<item>
			<title><![CDATA[Replace the backup file]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50417#p50417</link>
			<description><![CDATA[<p>Welcome</p><p>I used this code to make a backup copy, and I used the time and date to create a new file every time</p><p>Now I want to make the file with one name, and when I make a backup copy, it will replace the old file with the new file</p><br /><br /><br /><div class="codebox"><pre><code>procedure form2_Button8_OnClick (Sender: TObject; var Cancel: boolean);
begin
  if CopyFile(&#039;sqlite.db&#039;, &#039;Backup\backup.db&#039;) then showmessage(&#039;backup ok&#039;);
end;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ms2014m)]]></author>
			<pubDate>Wed, 06 Mar 2024 08:26:04 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50417#p50417</guid>
		</item>
	</channel>
</rss>
