File Paths on CentOS

I want to set-up a backup that stores data outside of the default FileMaker Server folder on CentOS.

Two questions: (1) Is it possible ? and (2) if so, how do I do it?

I used what I thought was the path, but the Admin Console for FMS 19 rejected it.

Any help or suggestions would be appreciated.

Thanks,

Michael Frankel
President & CEO, Wizard Consulting Group, Inc.
Mobile: (310) 291-3419

I may not be able to answer the question or offer much help, but for anyone able to do that, could you specify:

  • does the directory already exists?
  • can you type here the path as you typed it in the admin console?

To answer your questions:

  1. Yes, the directory exists
  2. The directory name, typed here as in the admin console, is filelinux:/home/centos/S3/

This is the same behaviour as on a macOS system. You first need to change the security settings for
your directory filelinux:/home/centos/S3/

on the Linux system the FileMaker Server is installed as a member of the group fmsadmin. Your directory has to be set to "read and write" for this group.

Since I'm no Linux command line wizzard I installed GNOME and xRDP on the CentOS instance. Now I can take the remote route via MS Remote Access tools from any computer, navigate in the filesystem of the Linux server to /home/holger/FMSBackup, right-click on the the folders icon and change the settings accordingly.

Afterwards the backup schedule can write to that directory.

HTH, Holger

You could also install the AWS CLI and backup the contents of the standard folder to an S3 bucket using a FileMaker schedule to call a shell script.

Has worked brilliantly on Windows over the years.

from Michaels path maybe that is just the one?

I'm with @AndyHibbs on this; I would use the AWS CLI to copy a backup directly from the FMS backup folder to S3.
Without knowing all the details it feels like @wizardconsulting's setup involves an unnecessary detour to the home folder into an S3 folder...

While that obviously keeps it within your comfort zone; I would strongly urge you to learn the basics of the Linux CLI. It really isn't hard. And we're here to help get you through that learning curve.
(and with a good text snippet tool you can store and recall 99% of the commands you'll ever need; you may find it's actually faster and easier than wading through a UI).

When you go to deploy Linux FMS for organizations with lots of Linux; you will risk alienating those IT departments if you insist on adding a desktop and remote access packages.
So don't do it automatically; consider it carefully.

2 Likes

Hi Wim -

Here's the problem. With the AWS CLI, I have not found a way to filter the files copied a partial directory name (and believe me I've tried).

So, for example, if my backups directory, /opt/FileMaker/FileMaker Server/Data/Backups had the following folders in it:

FMS_2020_11_29_0000
FMS_2020_11_30_0000
FMS_2020_12_01_0000
S3_2020_12_01_0100

I cannot upload only the files in the directory starting with S3. As I said, I've reviewed the documentation for the AWS CLI, specifically the cp (copy) command. While I can filter the uploaded files by a partial file name, I cannot filter them by a partial directory name (and I have tried).

If you know how to do this, I would be eager to hear how you did it.

For that reason, I've put the files into a separate directory outside of the normal backup folder for FileMaker Server. As I mentioned, I did this successfully on two Windows Server systems (2016 I think) and it worked without making any changes to the privileges of the folders.

My next foray into this would be to try changing permissions on the custom folder.

Thanks,

Michael Frankel
President & CEO, Wizard Consulting Group, Inc.
Mobile: (310) 291-3419

The normal and easy solution for this is to create a FMS backup schedule with the # of sets set to 0. What will dump the backup into a statically named folder so that you don't have to worry about the folder name.

The alternative is to use the OS scripting tools to identify the full name of the latest S3 folder and feed that full name to the S3 command.

2 Likes

Zero sets to keep - that’s the key I needed.

Thanks, Wim.

Hi Wim -

Your answer was clear and to-the-point, and it steered me in the right direction. With that, plus a dive into cron jobs, I now have a working upload from FM Server 19 on CentOS to Wasabi, which is similar to Amazon S3.

Thank You!

3 Likes