<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>自动备份 &#8211; 科技改变生活-雨落星辰</title>
	<atom:link href="https://p1e.cn/html/tag/%E8%87%AA%E5%8A%A8%E5%A4%87%E4%BB%BD/feed" rel="self" type="application/rss+xml" />
	<link>https://p1e.cn</link>
	<description>所有的伟大,都源于一个勇敢的开始</description>
	<lastBuildDate>Wed, 19 Jan 2022 11:12:42 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>良心云轻量自动快照-云函数-适配多机器</title>
		<link>https://p1e.cn/html/3135.html</link>
					<comments>https://p1e.cn/html/3135.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Wed, 19 Jan 2022 11:12:11 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[云函数]]></category>
		<category><![CDATA[自动备份]]></category>
		<guid isPermaLink="false">https://www.815494.com/?p=3135</guid>

					<description><![CDATA[新增备份方式修改： Instanceidx参数； 0：总是删除最新备份保留最早，这样可以有一个固定备份， 1：总是删除最早备份，这是滚动备份 1.进入云函数界面：https://console.cloud.tencent.com/scf/list 2.创建 3.选择自定义函数，事件函数，运行环境选择Python2.7；然后上传zip代码包，代码地址： https://z.815494.xyz/code/github/Lighthouse-Auto-Snapshot.zip 然后点击完成。 4.等上传完成，进入函数管]]></description>
										<content:encoded><![CDATA[<p>新增备份方式修改：<br />
<span style="color: darkorange;">Instanceidx参数；<br />
0：总是删除最新备份保留最早，这样可以有一个固定备份，<br />
1：总是删除最早备份，这是滚动备份</span></p>
<p>1.进入云函数界面：https://console.cloud.tencent.com/scf/list</p>
<p>2.创建<br />
<img fetchpriority="high" decoding="async" class="zoom alignnone size-full wp-image-3136" src="https://i.p1e.cn/2022/01/blog20220119110511fJYw23.png" width="600" height="289" /><br />
3.选择自定义函数，事件函数，运行环境选择Python2.7；然后上传zip代码包，代码地址：<br />
https://z.815494.xyz/code/github/Lighthouse-Auto-Snapshot.zip<br />
然后点击完成。<br />
<img decoding="async" class="zoom alignnone size-full wp-image-3137" src="https://i.p1e.cn/2022/01/blog20220119110515cg0BCx.png" width="600" height="452" /></p>
<p>4.等上传完成，进入函数管理-》函数配置，点击右上角编辑，<br />
修改 初始化超时时间、执行超时时间、环境变量<br />
两个超时时间尽量长点，<br />
环境变量需要参数 <u>Regions_InstanceIds</u>、<u>SecretId</u>、<u>SecretKey</u>，<u>Instanceidx</u><br />
Regions_InstanceIds参数填：ap-guangzhou:lhins-d2t4ns99（改成你自己的）</p>
<p>实例地域</p>
<pre>"ap-beijing", "ap-chengdu", "ap-guangzhou", "ap-hongkong", "ap-nanjing", "ap-shanghai", "ap-singapore", "ap-tokyo", "eu-moscow", "na-siliconvalley"</pre>
<p>Instanceidx参数要求：<br />
0：总是删除最新备份保留最早，这样可以有一个固定备份，<br />
1：总是删除最早备份，这是滚动备份<br />
然后保存。<br />
<img decoding="async" class="zoom alignnone size-full wp-image-3138" src="https://i.p1e.cn/2022/01/blog20220119110518mWlzw2.png" width="600" height="452" /><br />
<img loading="lazy" decoding="async" class="zoom alignnone size-full wp-image-3139" src="https://i.p1e.cn/2022/01/blog202201191105218CDh9H.png" width="600" height="317" /></p>
<p>5.进入函数代码，点击测试，没问题就可以进入触发管理设置定时了<br />
<img loading="lazy" decoding="async" class="zoom alignnone size-full wp-image-3140" src="https://i.p1e.cn/2022/01/blog20220119110525RWN0TM.png" width="600" height="338" /><br />
<img loading="lazy" decoding="async" class="zoom alignnone size-full wp-image-3141" src="https://i.p1e.cn/2022/01/blog20220119110529CoJt4t.png" width="600" height="347" /></p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/3135.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
