2.0 Updating
Preparation
Contact
support@cybersift.ioto provide you with a unique URL to download the package.Create a directory for Cybersift Drive
Unzip the zip file:
unzip [package-name].zip3. This will result in a file named filedrive and a folder named /build
⚠️ Backup the database
Navigate to the cs-drive installation folder, usually:
cd /root/cs-driveCopy the SQLite database:
supervisorctl stop cs_drive # ensure no activity is written to database while backing up
cp drive.db* /tmp/ # copies the SQLITE files to /tmp
supervisorctl start cs_drive # start the service back upUpdate the backend
Navigate to the cs-drive installation folder, usually:
cd /root/cs-driveRun the following:
make sure to change /path/to/filedrive on line 3
rm -rf ./filedrive.bak # remove old backup
mv ./filedrive ./filedrive.bak # this backs up the current verion of the backend
cp /path/to/filedrive ./filedrive # ⚠️ CHANGE THIS LINE TO MATCH THE PATH from "preparation" above
chmod +x ./filedrive # give executable permissions to the backend
supervisorctl restart cs_drive # use the new binary, wait for successful completionReverting Upgrade [Back-End]
At this point, visiting the CS-DRIVE URL should work. If not, revert:
cd /root/cs-drive
rm -rf ./filedrive
mv ./filedrive.bak ./filedrive
supervisorctl restart cs_driveUpdate the front-end
Navigate to the cs-drive installation folder, usually:
cd /root/cs-driveRun the following:
make sure to change /path/to/buildon line 5
rm -rf ./ui_bak # remove old backups
cp -rf ./ui ./ui_bak # this backs up the current verion of the frontend
cd ./ui
rm -rf ./build* #remove old version of UI
cp -rf /path/to/build ./build # ⚠️ CHANGE THIS LINE TO MATCH THE PATH from "preperation" above Reverting Upgrade [Front-End]
At this point, visiting the CS-DRIVE URL should work. If not, revert:
cd /root/cs-drive
rm -rf ./ui
mv ./ui_bak ./uiExperiencing issues?
Contact us at support@cybersift.io
tags:
Upgrading
Updating
Reverting upgrade
issues