Как сохранить группы при получении по запросу с мерзавцем

Вы захотите подойти первый/последний lsn от выполнения RESTORE HEADERONLY FROM DISK = N'E:\PathToBackup\test.trn' WITH NOUNLOAD

С информацией LSN от dbcc log (mydb)

LSN от dbcc управляют, чтобы потребности были преобразованы, чтобы быть применимыми как бы то ни было. Например, если у Вас есть LSN от команды журнала dbcc, которая похожа 00000014:00000157:0003 необходимо было бы сделать следующее:

select
left(convert(int, 0x00000014) * 1000000, 6) +
right(convert(int, 0x00000157) + 1000000, 6) +
right(convert(int, 0x0003) + 1000000, 5)

Примечание: Существуют определенные дебаты там о том, как преобразовать это правильно, и решением выше является определенный взлом. Лучший способ с UDF в этой статье KB.

1
задан 20 November 2012 в 12:07
2 ответа

This is best addressed with setting the permissions on all of the directories. If you set the the group 'sticky' bit, all files in the directory will maintain the group of the directory when members of the group modify them. So, to quickly set this on the staging site do the following:

chmod g+ws [directory]
find [directory] -type d -exec chmod g+ws {} \;
find [directory] -type f -exec chmod g+w {} \;

The first command sets the write and sticky bits for the group on the site top level directory. The second then finds all subdirectories of the top level folder and does the same. The third then makes sure the the group has write access to all of the files.

When you initially create the git repository, you can have it do the above automatically by using the --shared option:

git create --shared [directory]
5
ответ дан 3 December 2019 в 17:11

Попробуйте использовать подмодули git, это должно быть решением того, что вам нужно.

Или, если вам это действительно не нужно, вы можете реализовать для этого несколько сценариев, которые будут хранить некоторые файлы перед извлечением, а затем извлекать их, но это также вызовет проблемы позже при слиянии.

0
ответ дан 3 December 2019 в 17:11

Теги

Похожие вопросы