ソースを参照

:gear: added helper scripts to backup and transfer uploads directory

tags/0.9.0
J 4年前
コミット
25185c4db5
3個のファイルの変更13行の追加0行の削除
  1. 5
    0
      deployment/backup_images.sh
  2. 5
    0
      deployment/kill_thumbs.sh
  3. 3
    0
      deployment/upload_images_to_staging.sh

+ 5
- 0
deployment/backup_images.sh ファイルの表示

@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+
3
+# Points to the OLD PRODUCTION Site
4
+# BE CAREFUL!
5
+rsync -azP craft:/opt/craft-vue/uploads ./

+ 5
- 0
deployment/kill_thumbs.sh ファイルの表示

@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+
3
+# This must be run from your backup folder!
4
+# BE CAREFUL!
5
+find ./uploads/**/* -iname '*-*[0-9]x*[0-9].jpg' -exec rm -rf {} \;

+ 3
- 0
deployment/upload_images_to_staging.sh ファイルの表示

@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+
3
+rsync -azP ./uploads/* 143.110.234.41:/opt/staging/vue-wp.git/uploads/

読み込み中…
キャンセル
保存