Created
July 12, 2017 04:30
-
-
Save onocom/6141ec4b2a0b7667446c4735b295afea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$PATH_TARGET = "/PATH/TO/TARGET/"; | |
$PATH_SAVE = "/PATH/TO/SAVE/"; | |
// zip name | |
$file_name = "backup.zip"; | |
$command = " | |
cd ". $PATH_TARGET ." | |
zip -qr ". $PATH_SAVE . $file_name ." . "; | |
// Linuxコマンドの実行 | |
echo exec($command); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment