# File Paths on CentOS

**URL:** <https://the.fmsoup.org/t/file-paths-on-centos/1511>\
**Category:** Questions\
**Tags:** fms\
**Created:** [December 2, 2020, 12:38am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511 "2020-12-02T00:38:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![wizardconsulting](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/wizardconsulting/32/838_2.png) [@wizardconsulting](https://the.fmsoup.org/u/wizardconsulting)\
**Post date:** [December 2, 2020, 12:38am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/1 "2020-12-02T00:38:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bobino](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bobino/32/194_2.png) [@Bobino](https://the.fmsoup.org/u/Bobino)\
**Post date:** [December 2, 2020, 4:12am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/2 "2020-12-02T04:12:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![wizardconsulting](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/wizardconsulting/32/838_2.png) [@wizardconsulting](https://the.fmsoup.org/u/wizardconsulting)\
**Post date:** [December 2, 2020, 4:29am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/3 "2020-12-02T04:29:12Z")

</div>

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/_

---

<div class="post-metadata">

**Author:** ![harvest](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/harvest/32/231_2.png) [@harvest](https://the.fmsoup.org/u/harvest)\
**Post date:** [December 2, 2020, 10:30am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/4 "2020-12-02T10:30:52Z")

</div>

> [@wizardconsulting](#):
>
> I used what I thought was the path, but the Admin Console for FMS 19 rejected it.

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

---

<div class="post-metadata">

**Author:** ![AndyHibbs](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/andyhibbs/32/3089_2.png) [@AndyHibbs](https://the.fmsoup.org/u/AndyHibbs)\
**Post date:** [December 2, 2020, 10:49am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/5 "2020-12-02T10:49:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![harvest](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/harvest/32/231_2.png) [@harvest](https://the.fmsoup.org/u/harvest)\
**Post date:** [December 2, 2020, 11:06am UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/6 "2020-12-02T11:06:58Z")

</div>

> [@AndyHibbs](#):
>
> 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

from Michaels path maybe that is just the one?

---

<div class="post-metadata">

**Author:** ![WimDecorte](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@WimDecorte](https://the.fmsoup.org/u/WimDecorte)\
**Post date:** [December 2, 2020, 12:01pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/7 "2020-12-02T12:01:26Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![WimDecorte](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@WimDecorte](https://the.fmsoup.org/u/WimDecorte)\
**Post date:** [December 2, 2020, 12:05pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/8 "2020-12-02T12:05:31Z")

</div>

> [@harvest](#):
>
> Since I'm no Linux command line wizzard I installed GNOME and xRDP

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.

---

<div class="post-metadata">

**Author:** ![wizardconsulting](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/wizardconsulting/32/838_2.png) [@wizardconsulting](https://the.fmsoup.org/u/wizardconsulting)\
**Post date:** [December 2, 2020, 7:30pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/9 "2020-12-02T19:30:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![WimDecorte](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@WimDecorte](https://the.fmsoup.org/u/WimDecorte)\
**Post date:** [December 2, 2020, 7:47pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/10 "2020-12-02T19:47:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wizardconsulting](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/wizardconsulting/32/838_2.png) [@wizardconsulting](https://the.fmsoup.org/u/wizardconsulting)\
**Post date:** [December 2, 2020, 8:54pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/11 "2020-12-02T20:54:29Z")

</div>

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

Thanks, Wim.

---

<div class="post-metadata">

**Author:** ![wizardconsulting](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/wizardconsulting/32/838_2.png) [@wizardconsulting](https://the.fmsoup.org/u/wizardconsulting)\
**Post date:** [December 4, 2020, 5:40pm UTC](https://the.fmsoup.org/t/file-paths-on-centos/1511/12 "2020-12-04T17:40:25Z")

</div>

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!
