Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omnibus project in development #1

Open
salsa-dev opened this issue May 21, 2018 · 5 comments
Open

Omnibus project in development #1

salsa-dev opened this issue May 21, 2018 · 5 comments

Comments

@salsa-dev
Copy link
Contributor

Issue to monitor and discuss the development of the backup-omnibus project.

@salsa-dev
Copy link
Contributor Author

The project originated from here backup/backup#803 (comment)

@salsa-dev
Copy link
Contributor Author

salsa-dev commented May 22, 2018

Backup omnibus package 23d09aa

Follow README.md to build package.

Here is the log of working package:

user@web-dev-1:~/dev/omnibus-backup$ /opt/backup/embedded/bin/backup version
Backup 4.4.1
user@web-dev-1:~/dev/omnibus-backup$ /opt/backup/embedded/bin/backup generate:model --trigger my_backup \
>   --archives --storages='local' --compressor='gzip'
Generated configuration file: '/home/user/Backup/config.rb'.
Generated model file: '/home/user/Backup/models/my_backup.rb'.
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$ vim /home/user/Backup/models/my_backup.rb
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$ /opt/backup/embedded/bin/backup check
[2018/05/22 10:42:08][info] Configuration Check Succeeded.
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$ /opt/backup/embedded/bin/backup perform --trigger my_backup
[2018/05/22 10:42:22][info] Performing Backup for 'Description for my_backup (my_backup)'!
[2018/05/22 10:42:22][info] [ backup 4.4.1 : ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux] ]
[2018/05/22 10:42:22][info] Creating Archive 'my_archive'...
[2018/05/22 10:42:22][info] Running system utility 'tar'...
[2018/05/22 10:42:22][info] tar:STDOUT: tar (GNU tar) 1.28
[2018/05/22 10:42:22][info] tar:STDOUT: Copyright (C) 2014 Free Software Foundation, Inc.
[2018/05/22 10:42:22][info] tar:STDOUT: License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
[2018/05/22 10:42:22][info] tar:STDOUT: This is free software: you are free to change and redistribute it.
[2018/05/22 10:42:22][info] tar:STDOUT: There is NO WARRANTY, to the extent permitted by law.
[2018/05/22 10:42:22][info] tar:STDOUT:
[2018/05/22 10:42:22][info] tar:STDOUT: Written by John Gilmore and Jay Fenlason.
[2018/05/22 10:42:22][info] Using Compressor::Gzip for compression.
[2018/05/22 10:42:22][info]   Command: '/bin/gzip'
[2018/05/22 10:42:22][info]   Ext: '.gz'
[2018/05/22 10:42:49][info] Archive 'my_archive' Complete!
[2018/05/22 10:42:49][info] Packaging the backup files...
[2018/05/22 10:42:49][info] Packaging Complete!
[2018/05/22 10:42:49][info] Cleaning up the temporary files...
[2018/05/22 10:42:49][info] Storage::Local Started...
[2018/05/22 10:42:49][info] Storing '/home/user/backups/my_backup/2018.05.22.10.42.22/my_backup.tar'...
[2018/05/22 10:42:49][info] Cycling Started...
[2018/05/22 10:42:49][info] Storage::Local Finished!
[2018/05/22 10:42:49][info] Cleaning up the package files...
[2018/05/22 10:42:49][info] Backup for 'Description for my_backup (my_backup)' Completed Successfully in 00:00:27
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$ ls -lh /home/user/backups/my_backup/2018.05.22.10.42.22/my_backup.tar
-rw-rw-r-- 1 user user 107M May 22 13:42 /home/user/backups/my_backup/2018.05.22.10.42.22/my_backup.tar
user@web-dev-1:~/dev/omnibus-backup$
user@web-dev-1:~/dev/omnibus-backup$ ls -lh pkg/
-rw-r--r-- 1 root root  51M May 22 13:39 backup_0.0.1+20180522102031-1_amd64.deb
-rw-r--r-- 1 root root 7.6K May 22 13:39 backup_0.0.1+20180522102031-1_amd64.deb.metadata.json

51 Mb package with everything embedded.

user@web-dev-1:~/dev/omnibus-backup$ du -h /opt/backup/
...
290M    /opt/backup/

290 Mb package installed on disk.

@oogali
Copy link

oogali commented May 22, 2018

@salsa-dev Can you show what version of Ruby is running un your environment, alongside the version of Ruby you have embedded in the package?

@salsa-dev
Copy link
Contributor Author

@oogali

user@web-dev-1:~/dev/omnibus-backup$ ruby -v
ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]

@oogali
Copy link

oogali commented May 24, 2018

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants