import {motion} from 'framer-motion'; import {IconTerminal} from 'sentry/icons'; import {t} from 'sentry/locale'; import testableTransition from 'sentry/utils/testableTransition'; import ContinueButton from 'sentry/views/relocation/components/continueButton'; import RelocationCodeBlock from 'sentry/views/relocation/components/relocationCodeBlock'; import StepHeading from 'sentry/views/relocation/components/stepHeading'; import Wrapper from 'sentry/views/relocation/components/wrapper'; import type {StepProps} from './types'; export function EncryptBackup(props: StepProps) { const code = 'SENTRY_DOCKER_IO_DIR=/path/to/key ./sentry-admin.sh \\\nexport global --encrypt-with /sentry-admin/key.pub /sentry-admin/export.tar'; return ( {t('Create an encrypted backup of your current self-hosted instance')}

{t( 'You’ll need to have the public key saved in the previous step accessible when you run the following command in your terminal. Make sure your current working directory is the root of your `self-hosted` install when you execute it.' )}

} hideCopyButton={false} > {code}

{t('Understanding the command:')}

{'SENTRY_DOCKER_IO_DIR=/path/to/key'} {t('Map local directory to ')} {'/sentry-admin'} {t('in your Docker container.')}

{'./sentry-admin.sh'} {t( 'This is a script present in your self-hosted installation containing admin tools.' )}

{'export global'} {t('Perform a global export of your entire self-hosted instance.')}

{'--encrypt-with /sentry-admin/key.pub'} {t('Encrypts the export with the public key created in the last step.')}

{'/sentry-admin/file.tar'} {t( 'Writes the export file into the same directory where the public key file is located.' )}

{t('Note: Depending on your configuration, you may need to use ')} sudo {t('for this command.')}

props.onComplete()} />
); } export default EncryptBackup;