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

Question about required disk size #1810

Closed
ghost opened this issue Nov 6, 2016 · 5 comments
Closed

Question about required disk size #1810

ghost opened this issue Nov 6, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 6, 2016

Let's assume, we have two servers:

  1. server with borg backup repository and client , we have full access to this server, we have 300Gb of free disk space there (less than 2x200Gb).
  2. target storage server with media files (without ability to install anything like borg client), only read access via ftps/rsync, let's assume, we have 200Gb of media files there (max filesize of every single image is 5Mb).

My questions:

  1. is it possible to backup second media files to first server?..
  2. How much disk space will be required if I will try to mount sshfs and use borgbackup from this remote directory?..
    a.) 400Gb ( ~200Gb [repository size] plus ~200Gb [full size of last version of image folder on storage server])
    or
    b.) ~200Gb [repository size] + some more than 5Mb?

If answer is a.), can we improve something in borg create function to get answer b.) ?..

@enkore
Copy link
Contributor

enkore commented Nov 6, 2016

If I understand correctly, you want to backup the files from server (2) on the disks in server (1), correct?

In that case you will need ~200 GB of storage on server (1), where the repository is. Mounting the files to backup from server (2) won't need extra disk space on server (1). (Answer 2b.)

sshfs on server (1), making the files from (2) available, would work. borg-create then runs on server (1) (perhaps with --ignore-inode).

@ghost
Copy link
Author

ghost commented Nov 6, 2016

If I understand correctly, you want to backup the files from server (2) on the disks in server (1), correct?

Yes, correct.

So it's cheaper to use borg create from sshfs directory, instead of first rsync to local directory and next add from local directory to borg repository.

Thank you for your answers.

@ghost
Copy link
Author

ghost commented Nov 6, 2016

I tested borg backups via sshfs, it can't be solution for backuping production systems with media directories bigger several Gbs because of it will take days or weeks to end backup task... It's take extremely long time to process requests... Looks like rsync to local folder + borg backup from local folder is better solution for now even if it require twice more disk space.

@ghost
Copy link
Author

ghost commented Nov 6, 2016

I added feature request, which can help to solve this issue. #1811

@ThomasWaldmann
Copy link
Member

Closing (as the size question, which was the topic of this issue, was answered).

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