{"id":4183,"date":"2025-07-15T14:21:35","date_gmt":"2025-07-15T11:21:35","guid":{"rendered":"https:\/\/cloudvps.by\/community\/?p=4183"},"modified":"2025-07-16T20:01:31","modified_gmt":"2025-07-16T17:01:31","slug":"oblachnoe-rezervnoe-kopirovanie-cherez-rclone-i-oblaka-s3-gdrive","status":"publish","type":"post","link":"https:\/\/cloudvps.by\/community\/oblachnoe-rezervnoe-kopirovanie-cherez-rclone-i-oblaka-s3-gdrive\/","title":{"rendered":"\u041e\u0431\u043b\u0430\u0447\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Rclone \u0438 \u043e\u0431\u043b\u0430\u043a\u0430 (S3, GDrive)"},"content":{"rendered":"\n<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u0441 <a href=\"https:\/\/cloudvps.by\/servers\/vps\/vps_server.php\" data-internallinksmanager029f6b8e52c=\"4\" title=\"VPS \u0445\u043e\u0441\u0442\u0438\u043d\u0433\">VPS<\/a> \u0438 \u043d\u0430 \u043d\u0451\u043c \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0445\u043e\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u2014 \u0431\u0443\u0434\u044c \u0442\u043e \u0441\u0430\u0439\u0442, \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, pet-\u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0442\u044b \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0448\u044c \u043a \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044e: <strong>\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0430\u0436\u043d\u044b, \u043e\u043d\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b<\/strong>. \u0418 \u0432\u043e\u0442 \u044f \u0432 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0430 \u2014 \u00ab\u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u043f\u0430\u0434\u0451\u0442 \u0437\u0430\u0432\u0442\u0440\u0430?\u00bb \u041d\u0435 \u0434\u0430\u0439 \u0431\u043e\u0433, \u043a\u043e\u043d\u0435\u0447\u043d\u043e. \u041d\u043e \u0432\u0435\u0434\u044c \u043c\u043e\u0436\u0435\u0442. \u0418 \u0432\u043e\u0442 \u0442\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0431\u044d\u043a\u0430\u043f\u0430\u0445 \u2014 \u0438 \u043f\u0440\u0438\u0448\u043b\u0430 \u043a Rclone.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0438\u043c\u0435\u043d\u043d\u043e Rclone?<\/h4>\n\n\n\n<p>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043e\u0431\u043b\u0430\u043a\u0430\u043c\u0438 (Google Drive, S3, Dropbox, Yandex.Disk, Mega, \u0434\u0430\u0436\u0435 FTP \u0438 WebDAV),<\/li>\n\n\n\n<li>\u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439, \u043b\u0451\u0433\u043a\u0438\u0439, \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0443 \u0441\u0442\u0440\u043e\u043a,<\/li>\n\n\n\n<li>\u0443\u043c\u0435\u0435\u0442 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u043b\u0435\u0442\u0443 \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0432 \u043e\u0434\u043d\u0443 \u0438\u043b\u0438 \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b,<\/li>\n\n\n\n<li>\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u2026 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0411\u0435\u0437 \u043c\u0430\u0433\u0438\u0438 \u0438 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c.<\/li>\n<\/ul>\n\n\n\n<p>\u042f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u2014 \u0438 GUI-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0438 rsync \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e <strong>rclone sync<\/strong> \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 Google Drive \u0438 S3 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u0410 \u0435\u0449\u0451 \u2014 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Rclone \u043d\u0430 VPS<\/h2>\n\n\n\n<p>\u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e Ubuntu 22.04:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/https\/\" data-internallinksmanager029f6b8e52c=\"221\" title=\"HTTPS (Hyper Text Transfer Protocol Secure)\">https<\/a>:\/\/rclone.org\/install.sh | sudo bash\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone version\n<\/code><\/pre>\n\n\n\n<p>\u0412\u0441\u0451, \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043e\u0431\u043b\u0430\u043a\u0443: Google Drive \u0438 S3<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Google Drive<\/h4>\n\n\n\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone config\n<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u044b\u0439 remote, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <code>drive<\/code>, \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 (\u0434\u0430, \u0434\u0430\u0436\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440), \u0437\u0430\u0434\u0430\u0451\u043c \u0438\u043c\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>gdrive<\/code>), \u0438 \u0432\u0441\u0451.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">S3 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Backblaze B2, Amazon S3 \u0438\u043b\u0438 Yandex Object Storage)<\/h4>\n\n\n\n<p>\u0422\u043e\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 <code>rclone config<\/code>, \u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <code>s3<\/code>, \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043b\u044e\u0447 \u0438 \u0441\u0435\u043a\u0440\u0435\u0442, \u0440\u0435\u0433\u0438\u043e\u043d, endpoint (\u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043d\u0435 Amazon, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>https:\/\/storage.yandexcloud.net<\/code>), \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445: \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c<\/h2>\n\n\n\n<p>\u041e\u0431\u044b\u0447\u043d\u0430\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 <code>\/var\/www<\/code> \u0441 \u043e\u0431\u043b\u0430\u043a\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone sync \/var\/www gdrive:backups\/www --progress\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c S3:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone sync \/var\/www s3:mybucket\/backups\/www --progress\n<\/code><\/pre>\n\n\n\n<p>\u042f \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e <code>--progress<\/code> \u2014 \u043b\u044e\u0431\u043b\u044e \u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Cron<\/h2>\n\n\n\n<p>\u0412 crontab \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443, \u0447\u0442\u043e\u0431\u044b \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 3 \u043d\u043e\u0447\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 3 * * * \/usr\/bin\/rclone sync \/var\/www gdrive:backups\/www --log-file=\/var\/log\/rclone.log\n<\/code><\/pre>\n\n\n\n<p>\u041b\u043e\u0433\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u2014 \u043f\u0430\u0440\u0443 \u0440\u0430\u0437 \u043c\u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c (\u0441\u043f\u043e\u0439\u043b\u0435\u0440: \u044f \u0437\u0430\u0431\u044b\u043b\u0430 \u043f\u0440\u043e <code>chmod<\/code> \u0438 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0438\u043c\u0435\u0440: \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b, \u043a\u0430\u043a \u0438 \u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 PostgreSQL \u0438\u043b\u0438 MySQL, \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043c\u043f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pg_dump mydb &gt; \/tmp\/mydb.sql\nrclone copy \/tmp\/mydb.sql gdrive:backups\/db\n<\/code><\/pre>\n\n\n\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0438 \u0441 <code>mysqldump<\/code>.<\/p>\n\n\n\n<p>\u042f \u0445\u0440\u0430\u043d\u044e \u0442\u043e\u043b\u044c\u043a\u043e 3 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u0430\u043c\u043f\u0430 \u2014 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0447\u0438\u0449\u0430\u044e \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0440\u0438\u043f\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0425\u043e\u0442\u044f \u0432 GDrive \u043c\u043e\u0436\u043d\u043e \u0438 \u0440\u0430\u0437\u0433\u0443\u043b\u044f\u0442\u044c\u0441\u044f \u2014 15 \u0413\u0411 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0431\u044d\u043a\u0430\u043f\u044b \u2014 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c<\/h2>\n\n\n\n<p>Rclone \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <strong>crypt<\/strong>. \u0412\u043e\u0442 \u043a\u0430\u043a \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0430:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0421\u043e\u0437\u0434\u0430\u043b\u0430 \u043d\u043e\u0432\u044b\u0439 remote \u0442\u0438\u043f\u0430 <code>crypt<\/code>, \u0432\u044b\u0431\u0440\u0430\u0432 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u044b \u2014 <code>gdrive:backups\/secure<\/code><\/li>\n\n\n\n<li>\u0423\u043a\u0430\u0437\u0430\u043b\u0430 \u043f\u0430\u0440\u043e\u043b\u044c (\u043c\u043e\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439)<\/li>\n\n\n\n<li>\u041a\u043e\u043f\u0438\u0440\u0443\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0443\u0434\u0430:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone copy \/etc\/letsencrypt cryptremote:etc\/\n<\/code><\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0431\u043b\u0430\u043a\u0443 \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u0443\u0435\u0442 \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0427\u0442\u043e \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 Rclone?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0421\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u043a\u043e \u043a\u0430\u043a \u0434\u0438\u0441\u043a:<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone mount gdrive: ~\/mnt\/gdrive\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c:<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone check \/var\/www gdrive:backups\/www\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442\u0430 \u0437\u0430\u043d\u044f\u0442\u043e:<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone size gdrive:backups\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041b\u0438\u043c\u0438\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 \u0431\u043e\u0438\u0448\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0442\u044c:<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone sync \/var\/www gdrive:backups\/www --bwlimit 5M\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0433\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f (\u043f\u0440\u043e\u0441\u0442\u043e\u0439 bash-\u0441\u043a\u0440\u0438\u043f\u0442)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nDATE=$(date +%F)\nmkdir -p \/tmp\/backups\npg_dump mydb &gt; \/tmp\/backups\/mydb-$DATE.sql\ntar czf \/tmp\/backups\/etc-$DATE.tar.gz \/etc\nrclone copy \/tmp\/backups gdrive:backups\/$(hostname)\/$DATE --log-file=\/var\/log\/rclone_backup.log\nrm -rf \/tmp\/backups\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 cron&#8217;\u0435. \u041c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0443\u043c\u0430\u0442\u044c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u043b\u043e\u0433, \u0447\u0442\u043e \u0432\u0441\u0451 \u043f\u0440\u043e\u0448\u043b\u043e.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Rclone \u2014 \u044d\u0442\u043e \u0442\u0430 \u0441\u0430\u043c\u0430\u044f \u043f\u0430\u043b\u043e\u0447\u043a\u0430-\u0432\u044b\u0440\u0443\u0447\u0430\u043b\u043e\u0447\u043a\u0430<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0430\u0451\u0442 \u0442\u0435\u0431\u0435 \u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u0438\u0435: \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b, \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0435\u0441\u0442\u044c, \u0434\u043e\u0441\u0442\u0443\u043f \u0435\u0441\u0442\u044c \u043e\u0442\u043a\u0443\u0434\u0430 \u0443\u0433\u043e\u0434\u043d\u043e, \u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e (\u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Google Drive \u0438\u043b\u0438 Yandex Disk).<\/p>\n\n\n\n<p>\u0423\u0436\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 VPS \u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c \u2014 \u0438 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u044d\u043a\u0430\u043f\u0443 \u0447\u0435\u0440\u0435\u0437 Rclone \u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0430 \u0432\u0441\u0451 \u0437\u0430 \u043f\u043e\u043b\u0447\u0430\u0441\u0430. \u041b\u0443\u0447\u0448\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0447\u0435\u043c \u043f\u043e\u0442\u043e\u043c \u0436\u0430\u043b\u0435\u0442\u044c.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0412\u043e\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u2014 <strong>\u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449 \u0434\u043b\u044f Rclone<\/strong> + <strong>\u043c\u0438\u043d\u0438-\u043a\u0435\u0439\u0441\u044b<\/strong> \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u0438 \u0438 &#8220;\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u043d\u043e\u0441\u0442\u0438&#8221; \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430: \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043e\u0431\u043b\u0430\u043a\u0430\u043c\u0438 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Rclone<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u041e\u0431\u043b\u0430\u043a\u043e<\/th><th>\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043e\u0431\u044a\u0451\u043c<\/th><th>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Rclone<\/th><th>\u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0431\u044d\u043a\u0430\u043f\u043e\u0432?<\/th><th>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/th><th>\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/th><\/tr><\/thead><tbody><tr><td>Google Drive<\/td><td>15 \u0413\u0411<\/td><td>\u2705 \u041f\u043e\u043b\u043d\u0430\u044f<\/td><td>\u2705 \u041e\u0442\u043b\u0438\u0447\u043d\u043e<\/td><td>\ud83d\udd3c \u0411\u044b\u0441\u0442\u0440\u0430\u044f<\/td><td>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430<\/td><\/tr><tr><td>Dropbox<\/td><td>2 \u0413\u0411<\/td><td>\u2705 \u0427\u0430\u0441\u0442\u0438\u0447\u043d\u0430\u044f<\/td><td>\u26a0 \u0422\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043b\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/td><td>\ud83d\udd3d \u0421\u0440\u0435\u0434\u043d\u044f\u044f<\/td><td>\u0423\u0440\u0435\u0437\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/td><\/tr><tr><td>Yandex Disk<\/td><td>10 \u0413\u0411<\/td><td>\u2705 \u0427\u0435\u0440\u0435\u0437 WebDAV<\/td><td>\u2705 \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e<\/td><td>\ud83d\udd3c \u0425\u043e\u0440\u043e\u0448\u0430\u044f<\/td><td>\u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/td><\/tr><tr><td>Amazon S3<\/td><td>\u041f\u043b\u0430\u0442\u043d\u043e<\/td><td>\u2705 \u041f\u043e\u043b\u043d\u0430\u044f<\/td><td>\u2705 \u041d\u0430\u0434\u0451\u0436\u043d\u043e<\/td><td>\ud83d\ude80 \u0412\u044b\u0441\u043e\u043a\u0430\u044f<\/td><td>\u041b\u0443\u0447\u0448\u0435 \u0434\u043b\u044f \u0431\u0438\u0437\u043d\u0435\u0441\u0430 \u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/td><\/tr><tr><td>Backblaze B2<\/td><td>10 \u0413\u0411<\/td><td>\u2705 \u041f\u043e\u043b\u043d\u0430\u044f<\/td><td>\u2705 \u041e\u0442\u043b\u0438\u0447\u043d\u043e<\/td><td>\ud83d\udd3c \u0423\u043c\u0435\u0440\u0435\u043d\u043d\u0430\u044f<\/td><td>\u041e\u0447\u0435\u043d\u044c \u0432\u044b\u0433\u043e\u0434\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444 \u0437\u0430 \u0442\u0435\u0440\u0430\u0431\u0430\u0439\u0442\u044b<\/td><\/tr><tr><td>Mega.nz<\/td><td>20 \u0413\u0411<\/td><td>\u2705 \u0427\u0430\u0441\u0442\u0438\u0447\u043d\u0430\u044f<\/td><td>\u26a0 \u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e<\/td><td>\ud83d\udd3d \u041d\u0438\u0437\u043a\u0430\u044f<\/td><td>\u0415\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/api\/\" data-internallinksmanager029f6b8e52c=\"226\" title=\"API (Application Programming Interface)\">API<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u0435\u0439\u0441\u044b \u0438\u0437 \u043c\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Drive \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432<\/strong>: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 WordPress. \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u0440\u0430\u0437 \u0432 \u0434\u0435\u043d\u044c, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u044e \u043f\u0430\u043f\u043a\u0443 <code>\/var\/www<\/code> \u0438 \u0431\u0430\u0437\u0443.<\/li>\n\n\n\n<li><strong>S3 (Yandex Cloud) \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>: \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u044e \u043d\u0430 S3. \u0422\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0433\u0438\u0431\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0440\u0435\u0442\u0435\u043d\u0448\u043d.<\/li>\n\n\n\n<li><strong>Backblaze \u2014 \u0434\u043b\u044f \u0430\u0440\u0445\u0438\u0432\u0430<\/strong>: \u0442\u0443\u0434\u0430 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c: \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0434\u0430\u0436\u0435 \u043b\u043e\u0433\u0438. 1 \u0422\u0411 \u0437\u0430 \u043f\u0430\u0440\u0443 \u0431\u0430\u043a\u0441\u043e\u0432 \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u0436\u0451\u0441\u0442\u043a\u043e\u043c\u0443 \u0434\u0438\u0441\u043a\u0443.<\/li>\n\n\n\n<li><strong>Yandex Disk \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0434\u0440\u0430\u0444\u0442\u043e\u0432<\/strong>: \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u044e \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u044b, \u0443\u0434\u043e\u0431\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0434\u0430\u043c\u043f\u044b \u0442\u0443\u0434\u0430 \u2014 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043b\u0430\u0442\u0438\u0442\u044c, \u0438 \u0432\u0441\u0451 \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 VPS \u0438\u0437 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Rclone: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e<\/h2>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0451 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 VPS, \u044f \u0434\u0443\u043c\u0430\u043b\u0430, \u0447\u0442\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u043a\u0430: \u0432\u0440\u043e\u0434\u0435 \u043d\u0443\u0436\u043d\u044b, \u043d\u043e \u0432\u0440\u044f\u0434 \u043b\u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f. \u0410 \u043f\u043e\u0442\u043e\u043c \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u044f \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430 \u044f\u0434\u0440\u043e, \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/snapshot\/\" data-internallinksmanager029f6b8e52c=\"229\" title=\"Snapshot (\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043d\u0438\u043c\u043e\u043a)\">\u0441\u043d\u0430\u043f\u0448\u043e\u0442<\/a> \u0438\u2026 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0431\u0435\u0437 \u0432\u0430\u0436\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0431\u0430\u0437\u044b. \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u044f \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043e\u0446\u0435\u043d\u0438\u043b\u0430 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <strong>\u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>, \u043d\u043e \u0438 \u0443\u043c\u0435\u043d\u0438\u044f \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0451, \u043a\u0430\u043a \u0431\u044b\u043b\u043e.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f?<\/h2>\n\n\n\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u043a VPS (\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043d\u043e\u0432\u044b\u0439, \u201c\u0447\u0438\u0441\u0442\u044b\u0439\u201d \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f)<\/li>\n\n\n\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 <code>rclone<\/code> (\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438)<\/li>\n\n\n\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0431\u043b\u0430\u043a\u0443 (S3, GDrive \u0438 \u0442. \u043f.), \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432\u0430\u0448\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f<\/li>\n\n\n\n<li>\u0417\u043d\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>rclone remote:backups\/myserver-2025-07-01\/<\/code>)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 1: \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e <code>rclone<\/code> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d<\/h3>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u043e\u0434\u043d\u044f\u043b\u0438 VPS \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u044f \u2014 \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt install rclone -y\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e (\u0435\u0441\u043b\u0438 \u0435\u0449\u0451 \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0438):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone config\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 2: \u041f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0430\u0440\u0445\u0438\u0432\u0430<\/h3>\n\n\n\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c, \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0440\u0435\u0437\u0435\u0440\u0432 \u0435\u0441\u0442\u044c \u0438 \u043e\u043d \u0446\u0435\u043b\u044b\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rclone ls remote:backups\/myserver-2025-07-01\/\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u2014 \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0434\u0430\u0442\u0443 \u0438\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043e\u0431\u043b\u0430\u043a\u0443.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 3: \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b<\/h3>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0451 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 VPS. \u041b\u0443\u0447\u0448\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <code>\/etc\/nginx\/<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rclone sync remote:backups\/myserver-2025-07-01\/etc\/nginx\/ \/etc\/nginx\/\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rclone copy remote:backups\/myserver-2025-07-01\/var\/lib\/mysql\/ \/var\/lib\/mysql\/ --copy-links\n<\/code><\/pre>\n\n\n\n<p>\ud83d\udca1 <em>\u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>sync<\/code>, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u2014 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 VPS. \u041b\u0443\u0447\u0448\u0435 <code>copy<\/code> \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0428\u0430\u0433 4: \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/h3>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart nginx\nsudo systemctl restart mysql\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u0430\u0439\u0442\u0430 \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e, \u0432\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043f\u0430\u0441\u043b\u0438 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043e\u0432\u0435\u0442<\/h2>\n\n\n\n<p>\u042f \u0445\u0440\u0430\u043d\u044e \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <code>rsync + tar.gz<\/code> \u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u044e \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 <code>rclone<\/code> \u0432 GDrive. \u0412\u043e\u0442 \u043c\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 Nginx:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nrclone copy gdrive:backups\/nginx.tar.gz \/tmp\/\ncd \/etc\/nginx &amp;&amp; sudo tar -xzf \/tmp\/nginx.tar.gz\nsudo systemctl restart nginx\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u0442\u0430\u043a\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0443 \u043c\u0435\u043d\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e: \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445, <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/docker\/\" data-internallinksmanager029f6b8e52c=\"258\" title=\"Docker\">docker<\/a>, \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u0434\u0430\u0436\u0435 crontab.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u043b\u0430<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0430 \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u2014 \u0438 \u0432\u0441\u0451 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432\u0430\u043b\u043e<\/li>\n\n\n\n<li>\u0423\u0434\u0430\u043b\u044f\u043b\u0430 \u0441\u0442\u0430\u0440\u044b\u0435 \u043b\u043e\u0433\u0438 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430 \u0438\u0445, \u0437\u0430\u0431\u044b\u0432\u0430\u044f \u043f\u0440\u043e \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/li>\n\n\n\n<li>\u041e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430 <code>.bashrc<\/code> \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 shell<\/li>\n<\/ul>\n\n\n\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u2014 <strong>\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0439\u0442\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e<\/strong>, \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0438 \u043d\u0435 \u0441\u043f\u0435\u0448\u0438\u0442\u0435.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c \u0441 VPS \u0438 \u043d\u0430 \u043d\u0451\u043c \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0445\u043e\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u2014 \u0431\u0443\u0434\u044c \u0442\u043e \u0441\u0430\u0439\u0442, \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, pet-\u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0442\u044b \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0448\u044c \u043a \u043e\u0441\u043e\u0437\u043d\u0430\u043d\u0438\u044e: \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0430\u0436\u043d\u044b, \u043e\u043d\u0438 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b. \u0418 \u0432\u043e\u0442 \u044f \u0432 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0430 \u2014 \u00ab\u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u043f\u0430\u0434\u0451\u0442 \u0437\u0430\u0432\u0442\u0440\u0430?\u00bb \u041d\u0435 \u0434\u0430\u0439 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-4183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-avtomatizacziya"],"_links":{"self":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/comments?post=4183"}],"version-history":[{"count":1,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4183\/revisions"}],"predecessor-version":[{"id":4185,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4183\/revisions\/4185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/media\/4191"}],"wp:attachment":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/media?parent=4183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/categories?post=4183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/tags?post=4183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}