Updates
This commit is contained in:
parent
a0210b0f88
commit
959048cf94
@ -25,10 +25,10 @@ execSync(`[ -f "${R2_FILE_NAME}" ] && tar -xJvf "${R2_FILE_NAME}"`, {
|
||||
/**
|
||||
* # Restore Server Data
|
||||
*/
|
||||
const proxyBackupDir = `${BACKUP_DIR}/.backup/.coderank/proxy`;
|
||||
const coderankBackupDir = `${BACKUP_DIR}/.backup/.coderank`;
|
||||
|
||||
execSync(
|
||||
`[ -d "${proxyBackupDir}" ] && rsync -az --delete ${proxyBackupDir}/ /root/.coderank/proxy/ && rm -f /root/.coderank/proxy/servers-configs/*`,
|
||||
`[ -d "${coderankBackupDir}" ] && rsync -a ${coderankBackupDir}/ /root/.coderank/ && rm -f /root/.coderank/proxy/servers-configs/*`,
|
||||
{
|
||||
...execOpts,
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user