Johannes Zellner
dda16331f6
Remove unused rmbackup.sh
2017-04-17 20:26:06 +02:00
Johannes Zellner
d95e68926b
Remove unused backupapp.sh and backupbox.sh
2017-04-17 20:26:06 +02:00
Johannes Zellner
9354784f01
Remove unused cpbackup.sh
2017-04-17 20:26:05 +02:00
Johannes Zellner
e021a4b377
Remove unused restoreapp.sh
2017-04-17 20:26:05 +02:00
Johannes Zellner
5e1ad4ad93
We need root access to copy backup files with the filesystem backend
2017-04-17 20:26:05 +02:00
Johannes Zellner
b29a6014d5
Remove unused shell variable
2017-04-17 20:26:05 +02:00
Johannes Zellner
7fdf491815
Add backuptask.js to work with new storage interface
2017-04-17 20:09:02 +02:00
Johannes Zellner
1694a1536c
Use our own tar for app backups
...
This is only temporarily as moving away from btrfs snapshots,
we introduced a regression for app backups.
gnu tar fails to create tarballs if the files change during packing.
2017-04-13 13:06:12 +02:00
Johannes Zellner
128a3b03c9
Do not use btrfs snapshots for mail on box backup
2017-04-04 12:34:55 +02:00
Johannes Zellner
847ef6626f
Also use appsdir in rmappdir.sh
2017-04-04 12:34:55 +02:00
Johannes Zellner
4643daeeec
Use appsdata in createappdir.sh
2017-04-04 12:34:55 +02:00
Johannes Zellner
38178afd31
Do not use btrfs snapshots for app backups
2017-04-04 12:34:55 +02:00
Johannes Zellner
9c6324631d
Use APPS_DATA_DIR in app backup and restore scripts
2017-04-04 12:34:55 +02:00
Girish Ramakrishnan
e8d4e2c792
send more logs
2017-03-15 19:35:42 -07:00
Johannes Zellner
e61f11be81
Since we need root to save the authorized_key file we do it via sudo script
2017-03-07 15:16:41 +01:00
Girish Ramakrishnan
7035b3c18a
Fix issue where redis is unable to write on re-configure
...
The configure code path now ensures the volume which ends up
changing the ownership of the data directory. This means that the
redis container which is still running cannot write anymore
when it is re-created as part of setupAddons().
Just change ownership of top level directory. The subdirectores
like data/ redis/ are owned by containers which will chown
accordingly.
2017-02-20 13:32:05 -08:00
Johannes Zellner
cd28b1106b
Only create app subvolume if it does not exist
...
Fixes #227
2017-02-17 15:15:50 +01:00
Girish Ramakrishnan
fe5e31e528
Save update json in /root
...
/tmp is not very secure. But the real reason is so that we can
re-run the setup script again should things fail.
/home/yellowtent/box/scripts/installer.sh --data-file /root/cloudron-update-data.json
2017-01-30 15:21:04 -08:00
Girish Ramakrishnan
f142d34f83
Move box data out of appdata volume
...
This lets us restore the box if the app volume becomes full
Fixes #186
2017-01-24 13:48:09 -08:00
Girish Ramakrishnan
cdd4b426d5
use elif
2017-01-23 14:03:36 -08:00
Girish Ramakrishnan
ea257b95d9
Fix dirnames when backing up
2017-01-21 23:40:41 -08:00
Girish Ramakrishnan
d84666fb43
Move mail data out of box
...
This will help us with putting a size on box data
Mail container version is bumped because we want to recreate it
Part of #186
2017-01-20 20:22:08 -08:00
Girish Ramakrishnan
72dd3026ca
collect docker info output
...
this has information like the storage driver
2017-01-10 20:42:24 -08:00
Girish Ramakrishnan
7b1a6e605b
ensure backup directory exists
...
this is because the filename can now contain subpaths
2017-01-09 16:09:54 -08:00
Girish Ramakrishnan
2b27e554fd
Change backup filenames
...
appbackup_%s_%s-v%s.tar.gz -> app_%s_%s_v%s.tar.gz
drop 'backup'. rationale: it is known these files are backups
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
backup_%s-v%s.tar.gz -> box_%s_v%s.tar.gz
drop 'backup' and name it 'box'. this makes it clear it related to the box backup
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
Part of #159
2017-01-04 13:36:25 -08:00
Girish Ramakrishnan
4784b7b00e
Fix coding style
2017-01-04 13:36:16 -08:00
Girish Ramakrishnan
6fbbf0ad61
Use curl with options
2016-12-28 09:49:04 -08:00
Girish Ramakrishnan
61789e3fda
Use the installer.sh from the source tarball
...
This redesigns how update works. installer.sh now rebuild the package,
stops the old code and starts the new code. Importantly, it does not
download the new package, this is left to the caller. cloudron-setup
downloads the code and calls installer.sh of the downloaded code.
Same goes for updater.sh. This means that installer.sh itself is now
easily updatable.
Part of #152
2016-12-28 08:59:07 -08:00
Girish Ramakrishnan
fae0ba5678
Decouple installer from the base image script
...
This means that the base image does not have the installer anymore
and needs to be copied over.
Part of #152
2016-12-28 08:58:10 -08:00
Johannes Zellner
b6e96d77aa
Thanks shell
2016-12-12 14:59:30 +01:00
Johannes Zellner
b2dbb5a100
Fixup bugs with updated backup scripts
2016-12-12 09:51:52 +01:00
Johannes Zellner
816911d071
Make s3 backup scripts aware of endpoints
...
Part of #123
2016-12-12 09:51:52 +01:00
Johannes
95a90dd050
Check on the installer service to be able to cancel update from box side
2016-11-06 14:30:26 +01:00
Johannes
908aa6f426
Reset the systemd-run service in case it failed earlier
...
systemd will refuse to run a transient unit if one run
with the same unit name failed earlier
2016-11-06 14:30:26 +01:00
Johannes
18b58ced8d
Run the updater through systemd-run
...
This ensures it can start and stop the box process.
Due to control-group setting to killall children
the updater itself would get killed if the box service
restarts
2016-11-06 14:30:26 +01:00
Johannes
b40a9803a8
Adjust script paths for isntaller.sh movement
2016-11-06 14:30:26 +01:00
Johannes
16deb001bf
No more cloudron-installer to stop
2016-11-06 14:29:41 +01:00
Johannes
8adf9f3643
Add initial update.sh script to trigger installer.sh from box
2016-11-06 14:29:41 +01:00
Johannes
5ba86d5c35
Use aws s3 cli to test credentials
...
This allows us to test the exact same usage of the api
through the cli tool, not the javascript api
2016-10-28 16:36:05 +02:00
Johannes Zellner
7e41ea9c31
Make the script executable
2016-10-10 16:25:43 +02:00
Johannes Zellner
f05a5226ba
Add new sudo file rmbackup.sh as backups are owned by root currently
2016-10-10 16:25:43 +02:00
Girish Ramakrishnan
98773160d0
sync before reboot
2016-10-03 17:43:22 -07:00
Johannes Zellner
7b9eff94b3
No need to set always empty headers for app restore curl
2016-09-20 09:25:48 +02:00
Johannes Zellner
3ac786ba6d
Define shell variable regardless of backend
2016-09-20 09:25:48 +02:00
Johannes Zellner
746afb2b21
Shell uses obviously == no ===
2016-09-20 09:25:48 +02:00
Johannes Zellner
2ce768e29a
Refactor getAppBackupCredentials()
2016-09-20 09:25:48 +02:00
Johannes Zellner
6c23bce8e8
Prepare support for provider specific backup scripts
2016-09-20 09:25:48 +02:00
Girish Ramakrishnan
e2a22c3a5e
collect more docker logs for IP mapping
2016-09-16 22:10:33 -07:00
Girish Ramakrishnan
f3978897ae
use a different exit code to signal external errors
...
http://tldp.org/LDP/abs/html/exitcodes.html
2016-08-19 21:54:14 -07:00
Girish Ramakrishnan
2d01f2a0e9
pass migrate reason all the way to splash code
2016-07-05 22:04:24 -05:00